Re: gcno file doesn't include uncalled member functions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux