Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gcc -pg and gprof not showing libc call times

60 views
Skip to first unread message

jcomeau_ictx

unread,
Oct 15, 2009, 9:13:09 PM10/15/09
to
Hi, I'm trying to optimize my code using gprof, but it's not showing
me the time taken by libc routines like scanf, printf, and getchar.
Running ldd on the binary shows just the normal libraries, not the
debug libs, is that correct? I've installed libc6-dbg, no help.
Shouldn't
the -pg switch tell gcc to link statically to the dbg libraries? This
is a Debian system, gcc 4.3.3. Thanks in advance -- jc
0 new messages