Linux C++ Profiler

callgrind + kcachegrind are two nice tools for profiling C++ code.

Assuming your program is called main, use as

valgrind --tool=callgrind --callgrind-out-file=callgrind.out ./main && kcachegrind callgrind.out

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>