[fpc-pascal] RE: FPC and Profiling software

Jeff Pohlmeyer yetanothergeek at gmail.com
Thu Mar 13 09:52:33 CET 2008


Graeme Geldenhuys wrote:

> I'm trying to detect where bottlenecks occur in my code.

On Linux, you can get some interesting information with something like this:

% valgrind --tool=callgrind  [YOUR_APP]  [YOUR_ARGS]
% callgrind_annotate --auto=yes --inclusive=yes > callgrind.log

And then have a look at "callgrind.log"

To use this, just be sure you do NOT compile your app with -pg !

More info at http://valgrind.org/

 - Jeff



More information about the fpc-pascal mailing list