[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-list
Subject:    Re: callgraph on x86_64
From:       "Konstantin Serebryany" <konstantin.s.serebryany () gmail ! com>
Date:       2008-03-14 7:00:44
Message-ID: 59e975c10803140000n6aaef8f5t705609c4af618c50 () mail ! gmail ! com
[Download RAW message or body]

>  That flag turns off -fomit-frame-pointer which is enabled of you have
>  optimization turned on:
>  http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Optimize-Options.html
>
>  Are you compiling your code with -o in general?

-O2

>  What happens if you
>  simply turn off optimization (without doing anything with
>  -fno-omit-frame-pointer)?

Indeed, compiling with -O0 -g (and no other flags) gives correct call graph.
I never tried it since profiling unoptimized program is quite useless
for me (it has very different profile due to not inlining tiny
functions).

Thanks,

--kcc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic