On Fri, Apr 28, 2006 at 12:52:07PM -0700, James E Wilson wrote:
> The above assumes you don't have a profiled C library available. If you
> did, then you would have at least two profiled functions, main and
> printf, and would have gotten some call graph info emitted. If you
> don't have a profiled C library available, you could try compiling one
> yourself. There is a glibc configure option --enable-profile for that.
> I've never tried this myself. I'd expect this to be a non-trivial
> exercise. Besides the issue of compiling glibc, you also need to
> install the profiled library, and arrange to link with it.
Many prebuilt distributions already ship it; FWIW, if you link with
"-profile" instead of "-pg", GCC will automatically attempt to use