gcno file doesn't include uncalled member functions?

John Love-Jensen eljay@adobe.com
Tue May 6 19:27:00 GMT 2008


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



More information about the Gcc-help mailing list