There is a wiki page about profiling, edited by many people:
https://wiki.freepascal.org/Profiling
It explains the usage of Valgrind among other profilers. There is a section:
---
You can also profile only specific parts of your program. For example you
can start the program with
valgrind --ins
Actually it is :
$ valgrind --tool=callgrind --instr-atstart=no ./lazarus &
The tool must be defined there. I fixed the wiki page.
Juha
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus