[fpc-pascal]Profiling FPC executables
peter at freepascal.org
Wed Nov 26 14:41:14 CET 2003
> I'm writing a simulation that will take hours or days to run. I've
> never used formal profiling tools but this seems like a good
> opportunity. I'm working on Linux and I'm still using FPC 1.0.10.
> What tools are available to me?
For the moment only gprof. Maybe in the future also valgrind/cachegrind
Compile your program with -pg
Start your program (this will generate a gmon.out)
Run gprof <executable>
More information about the fpc-pascal