<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">There is a wiki page about profiling, edited by many people:</div><div dir="ltr"> <a href="https://wiki.freepascal.org/Profiling">https://wiki.freepascal.org/Profiling</a></div><div dir="ltr">It explains the usage of Valgrind among other profilers. There is a section:</div><div dir="ltr">---<br><div><p style="margin:0.4em 0px 0.5em;color:rgb(0,0,0);font-family:sans-serif;font-size:12.7px">You can also profile only specific parts of your program. For example you can start the program with</p><pre style="font-family:monospace,monospace;color:rgb(0,0,0);background-color:rgb(248,249,250);border:1px solid rgb(234,236,240);padding:1em;white-space:pre-wrap;line-height:1.1em;font-size:12.7px"> valgrind --instr-atstart=no ./myprogram --options --to --my --program</pre></div><div>---</div><div>It is not correct. I try to profile Lazarus project but Valgrind gives an error:</div><div> <span style="color:rgb(0,0,0);font-family:monospace">valgrind: Unknown option: --instr-atstart=no</span></div>If I start without parameters like:<span style="font-family:monospace"><br></span><div><span style="color:rgb(0,0,0);font-family:monospace"> $ valgrind ./lazarus</span><br></div><div>it uses the mem tool. What is the right syntax for starting Valgrind without a tool?<br></div><div><br></div><div>I have Manjaro linux and Valgrind version 3.16.1.</div><div>I have used Valgrind earlier but forgot many details.</div><div><br></div><div>Regards,</div><div>Juha</div><div><br></div></div></div></div></div></div></div></div></div>