Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-11

Profiling with Valgrind

3 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

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 --instr-atstart=no ./myprogram --options --to --my --program

---
It is not correct. I try to profile Lazarus project but Valgrind gives an error:
valgrind: Unknown option: --instr-atstart=no
If I start without parameters like:
$ valgrind ./lazarus
it uses the mem tool. What is the right syntax for starting Valgrind without a tool?

I have Manjaro linux and Valgrind version 3.16.1.
I have used Valgrind earlier but forgot many details.

Regards,
Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20201125/dd484e5b/attachment.html>

Reply by email

Juha Manninen
to Juha Manninen

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 instructions for profiling, please remove this Valgrind page after maybe merging useful information to the comprehensive Profiling page.

Regards,
Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20201209/28fda586/attachment.html>

Reply by email