[QGIS-Developer] PSA: Use of Hotspot to find performance bottlenecks

Luigi Pirelli luipir at gmail.com
Fri Jun 8 02:14:10 PDT 2018


thanks nyall

Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
*
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
* Hire me: http://goo.gl/BYRQKg
**************************************************************************************************

On 8 June 2018 at 01:38, Nyall Dawson <nyall.dawson at gmail.com> wrote:

> Hi all,
>
> Thought I'd give a bit of a "heads-up" regarding a tool I've been
> using a lot recently to find performance bottlenecks in QGIS code.
>
> The tool is hotspot - https://github.com/KDAB/hotspot . It's a
> graphical frontend to the kernel perf tool (so linux only). What makes
> it really easy to use is the different views it provides to the perf
> reports. I've especially found the "flamegraph" view to be very
> helpful at tracking down bottlenecks.
>
> To use it, you launch QGIS and get ready to run the process you want
> to profile. Then from hotspot, you run the File - Record Data command,
> and attach to the running QGIS process. Flick back to QGIS, do some
> stuff, and return to hotspot and Stop Recording then View Results...
> and fingers crossed, you'll find some nice and easy bottlenecks to
> fix.
>
> I've tried other tools like this in the past, but found hotspot is the
> easiest to to use because it doesn't require any compilation changes,
> you can attach to already running applications, and because the
> supplied views are very helpful.
>
> I think the server team especially may find this beneficial during
> their current hunt on server performance regressions!
>
> Nyall
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180608/ca6f61e9/attachment-0001.html>


More information about the QGIS-Developer mailing list