This is the mail archive of the
mailing list for the GCC project.
- From: nbecker at hns dot com (Neal D. Becker)
- To: gcc at gcc dot gnu dot org
- Date: 21 Nov 2002 08:35:00 -0500
- Subject: line-by-line profiling
How do I get line-by-line profiling to work? I'm using gcc-3.2 linux
The instructions in gprof say to turn on basic block profiling using
gcc -a. Apparantly this flag is obsolete? I'm guessing it should be
Compiling with g++ -pg -g -mcpu=athlon-xp -march=athlon-xp -O6
-ffast-math -fprofile-arcs, then running
gprof -l exechns27 > prof
The results I get don't seem to make sense. What am I doing wrong?