How do I get a profiled libstdc++?
Benjamin Kosnik
bkoz@redhat.com
Tue Nov 21 08:19:00 GMT 2006
> 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.
to compile libstdc++ with profiling, you can do:
make CXXFLAGS="-pg" all
in the libstdc++ build directory.
When you say "only partially works," what other info were you expecting?
-benjamin
More information about the Libstdc++
mailing list