Hotspot: Linux `perf` GUI for performance analysis

github.com

109 points by jez 4 days ago


gue-ni - 2 days ago

Fun fact: firefox also supports loading 'perf' reports: https://profiler.firefox.com/

ognarb - 2 days ago

From the same author, Heaptrack to investigate memory usage is also very helpful: https://invent.kde.org/sdk/heaptrack/

directmusic - 2 days ago

I primarily do macOS development work and use Instruments for profiling, but have been working on Linux a lot lately and Hotspot has been pulled out a lot over the last few weeks. Highly recommended.

fransje26 - 2 days ago

Great tool that has been really helpful in helping me find unexpected bottlenecks in the codebases I've been working on.

It's easy to use, and pairs beautifully with the unintrusive perf tool, which makes the combination a joy to use.

And, if combined with a codebase opened in QtCreator, you can click on a hotspot in the flamegraph, and it will bring you automagically to the correct file and line in QtCreator, without any explicit linking required between the two programs. I discovered that feature accidentally, and the fact that it just worked seamlessly really impressed me. (Tested on a Debian-based Linux).

A big thanks to KDAB for making this tool available to us!

wizzledonker - 2 days ago

This is a fantastic tool and I recommend it! I use it every day to recursively solve bottlenecks in our code base.

dustbunny - a day ago

I couldn't figure out how to use hotspot. I used speedscope instead: https://www.speedscope.app/

Maybe I should check out hotspot again.

drewg123 - 2 days ago

I'm on FreeBSD, so its a lot of overhead to check myself: But, does this have a source view like Vtune, that can attribute cycles / cache misses / etc, to a line of code? I see it has an assembly view..

pjmlp - 2 days ago

Nice tool, thanks for the heads up.

grandinj - 2 days ago

Wonderful tool. Has been incredibly useful in optimising LibreOffice.