This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: How do I get a profiled libstdc++?
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 21 Nov 2006 09:19:57 +0100
- Subject: Re: How do I get a profiled libstdc++?
- References: <oydejrxjulx.fsf@cs.rice.edu>
> 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