callgrind
kcachegrind
Not gdb, but g++ with gprof.
Pass to g++ on of these options:
# Profile Options (to see where time is spent):
# -p --> prof
# -pg --> gprof
# -a --> tcov
# ATTENTION: -a inhibits -fprofile-args!
and possibly one or both of these options:
# Coverage Options (to check coverage of test cases):
# -fprofile-args ==> $@.da
# -ftest-coverage ==> $@.bb, $@.bbg
Then run your program.
Then use gprof to get a profile report, or gcov to get the coverage.
--
__Pascal Bourguignon__
The tool you're looking for is called a profiler. Under Linux,
there's gprof, which is quite good.
Typically, you'll also have to compile with special options: for
gprof, you'll need -pg with g++, but check the documentation.
--
James Kanze (GABI Software) email:james...@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Thanks, I will try then gprof which seems to be the tool I am looking
for. Thanks a lot!