Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Visual) Profiling with Eclipse CDT

Is there a established standard plugin/ method for visual profiling with Eclipse CDT? By visual I mean not invoking my programs manually and appealing visual output of the profiling results with gauges etc. like in similar Tools (like e.g. Netbeans's Java Profiler).

Visual profiling in Netbeans

like image 338
Eric Avatar asked Dec 12 '11 10:12

Eric


1 Answers

After some research, the most common CDT profilers are GProf and valgrind.

A good tutorial for GProf can be found here.

As I'm using MacOSX, GProf is not usable, because it bases on system calls that seem to have vanished from MacOSX some versions ago. Therefore I recommend valgrind (in combination with Massif) - it works like a charm on my apple and fulfills all my needs (heap usage graph, see below). Both softwares can be found here.

EDIT: massif output is better viewed with (guess what) the massif viewer by Milian Wolff (native on KDE, ports for MacOSX are available). Just feed in the massif output (valgrind --tool=massif {appname}).

Massif

like image 141
Eric Avatar answered Oct 28 '22 05:10

Eric