Sign in Join
Wiki copytemporary

LazProfiler

About

LazProfiler is an IDE addon which adds a One-Click-Profiler to Lazarus.

Screenshot

\

Download

System Requirements / Dependencies

Installation

Download from here and install manually.
It depends on LCLExtension and EpikTimer.

Support page

http://forum.lazarus.freepascal.org/index.php/topic,38983.0.html

Using LazProfiler

Start profiling

Show output

Cleanup profiler

In case the instrumenting of the sources produce not compileable code you can reset the profiler and tidy things up by choosing
"Cleanup Profiler and restore original files" from Run menu:

Influencing profiling

Hints in source code

By default the profiling automatically starts. If you just want to profile some parts of your code you can surround it by two comments:\

pascal
// start-profiler
code_to_profile;
// stop-profiler

Disable instrumenting

If you want to exclude procedures/functions/classes/units/packages from beeing instrumented,
just uncheck the checkbox in front of the procedure/function/class/unit/package name
in the profiler output window.
\

Note: Packages are only visible if tree is sorted by package
Units are onyl visible if tree is sorted by package or unit.
Classes are only visible if tree is sorted by package, unit or class.

How does it work?

When profiling is started the following steps are done:

Known issues

Version History


From the Free Pascal wiki, page "LazProfiler", as it stood on 2019-10-10 after a change by PascalR, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.