This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: gcno file doesn't include uncalled member functions?


Hi Michael,

Keep in mind that profiling -O0 produces not-useful results for performance
profiling.  (It may produce useful results for other purposes.  Such as code
exercise coverage.)

I tweaked your compile flags:

# g++ -fprofile-arcs \
 -ftest-coverage \
 -fno-default-inline \
 -fkeep-inline-functions \
 -O0 -o rect main.cpp

# ./rect

# gcov -l -f main.gcda | c++filt -n

Hey, that's useful info!  I've never used gcov before.

HTH,
--Eljay


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