This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcno file doesn't include uncalled member functions?
- From: John Love-Jensen <eljay at adobe dot com>
- To: <morrell at alumni dot ucsd dot edu>, GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 06 May 2008 14:20:38 -0500
- Subject: 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