Bruno Haible: The ideal application profiler
The usual tool for optimizing a program's execution speed is a profiler.
I've seen and tried various profilers over the years, and each of them had some drawbacks: Some of them require root privileges, some of them produce only a per-function profiling (no insights of what is expensive inside a function), some of them work only on unoptimized or specially compiled binaries, some of them are very slow during the program execution.
For the first time, there is a profiler without any these drawbacks. Plus, it is easy to use.
It is gprofng, part of the GNU binutils, in versions from 2025-05-22 or newer.
Together with the gprofng-gui, an optional GUI that makes it very easy to use.
For more details, see this wiki:
https://gitlab.com/ghwiki/gnow-how/-/wikis/Profiling/with_sampling.
Congratulations to the GNU binutils team, and to Vladimir Mezentsev in particular!
Source: Planet GNU