[PATCH] gprofng: a new GNU profiler

Florian Weimer fw@deneb.enyo.de
Fri Oct 8 16:23:27 GMT 2021


* Vladimir Mezentsev via Binutils:

> In this submission we are contributing a new profiler to the GNU binary
> utilities, called gprofng (for GNU profiler, next generation).
>
> Why a new profiler?
> ===================
>
> The GNU profiler, gprof, works well enough in many cases. However, it
> hasn't aged well and it is not that very well suited for profiling
> modern-world applications. Examples of its limitations are lack of support
> for profiling multithreaded programs, and shared objects. Both are
> ubiquitous nowadays.

I find it odd to replace an instrumentation-based profiler with a
sampling-based profiler.

> gprofng archive EXPERIMENT
>
> Archive the associated application binaries, load objects and source
> files in an existing experiment directory to make it self contained.

This looks very useful.  Can it be generalized to support coredumps?
So that it is possible to get identical debugging experience on a
system where the necessary prerequisites are not installed?


More information about the Binutils mailing list