Re: Using sysprof with 64bits linux



On 04/27/2017 08:08 AM, Jean-Marc Lasgouttes wrote:

I compile my builds with autoconf using -fno-omit-frame-pointer, but it
seems that it is not enough (or should it be used when linking too?).
What other flags am I supposed to use to produce a binary that will be
palatable to sysprof?

Hi!

What I use for profiling various GNOME modules is:

   -ggdb -O0 -fno-omit-frame-pointer

I'm not sure how long it's been since you used Sysprof, but many years
ago (when 32-bit x86 was prevalent), Sysprof used a custom kernel
modules to get data. A while back it was changed to use the Linux perf
kernel module. There are some differences in implementation.

-- Christian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]