This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]