Sign in Join
FPDoc Onlineexperiment

LazLoggerProfiling unit

Contains classes and routines used for profiling in the Lazarus debugger.

lazloggerprofiling.pas is part of the LazUtils package.

Classes and records

TLazLoggerBlockMemWatchclassProvides profiler instrumentation for memory allocation (heap) in a logger class.
TLazLoggerBlockTimerclassProvides profiler instrumentation for execution times in a logger class.

Procedures and functions

DbgsMemUsedfunctionGenerates a formatted message with memory usage for the parent, current, or child block(s).
DbgStartMemWatchprocedureGets or creates memory allocation data for the specified name, and initializes its data.
DbgStartTimerprocedureGets or creates timing data for the specified name, and updates its last execution time.
DbgsTimeUsedfunctionGenerates a formatted message with execution times for the parent, current, or child blocks.
DbgStopMemWatchprocedureUpdates memory allocation data using the specified name when it is stopped, and calculates its cumulative usage.
DbgStopTimerprocedureUpdates timing data using the specified name when it is stopped, and calculates its cumulative execution time.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.