This is the mail archive of the
mailing list for the GCC project.
GPROF -pg C++ and library
- From: "Olivier Delannoy" <olivier dot delannoy at gmail dot com>
- To: gcc <gcc-help at gcc dot gnu dot org>
- Date: Fri, 2 Nov 2007 15:22:25 +0100
- Subject: GPROF -pg C++ and library
I hope it's the correct place for this question.
I am trying to profile my application which is organized in several
libraries. I would like to know what I need to do to get a profile
which actually represent my application and not only a part of it. The
program is composed of dynamic libraries and I am interesting in
getting profile from the dynamic libraries functions as well.
Libraries have been compiled using -pg -g3 -O0 as well as the main
program but I can't find any statistics on the usage of functions
defined in libraries. The application is written in C++ and makes use
of a few C libraries (which I am not interested in for profiling).
What is the common way to gather these information using -pg and gprof.