This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
How do I get a profiled libstdc++?
- From: Scott A Crosby <scrosby at cs dot rice dot edu>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 20 Nov 2006 22:23:38 -0600
- Subject: How do I get a profiled libstdc++?
I've been trying to profile a program which has a substantual amount
of its runtime in libstdc++. But try as I might, I can't get a copy of
libstdc++ to compile with profiling, get my program to link against
it, and have it generate a gmon.out that has frequency counts for the
code in libstdc++. It only partially works, generating call counts for
my program and the template functions in stdc++ that my program
invokes.
I'm using gcc (GCC) 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)
under x86 linux.
I'd like to use gprof instead of oprofile, because of how it
summarizes the call tree.
Any ideas for how I can get this to work? GCC bugzilla and google come
up empty.
Thanks,
Scott