[Lazarus] Profiling with Valgrind and KCacheGrind

2021-01-10 Thread Juha Manninen via lazarus
I am profiling and optimizing code in Lazarus IDE. Valgrind profiler + KCacheGrind visualizer tool make a very nice combination. A picture of KCacheGrind in real action : https://photos.app.goo.gl/YGn3uiNgciWPKSGx7 KCacheGrind is part of KDE project and thus integrates well with KDE Plasma deskto

Re: [Lazarus] Profiling with Valgrind

2020-12-09 Thread Juha Manninen via lazarus
There is another wiki page about Valgrind : https://wiki.freepascal.org/Debugging_with_Valgrind It is not very good. It does not even mention the callgrind tool. What more, the page name is "Debugging with Valgrind" while it should be "Profiling with Valgrind". If somebody wants to improve instruc

Re: [Lazarus] Profiling with Valgrind

2020-11-25 Thread Juha Manninen via lazarus
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

[Lazarus] Profiling with Valgrind

2020-11-25 Thread Juha Manninen via lazarus
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