[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazLoggerProfiling' (#lazutils)

TLazLoggerBlockTimer

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Provides profiler instrumentation for execution times in a logger class.

Declaration

Source position: lazloggerprofiling.pas line 24

type TLazLoggerBlockTimer = class(TLazLoggerBlockHandler)

public

  constructor Create;

  

Constructor for the class instance.

  procedure EnterBlock(); override;

  

Captures the execution start time and nesting level when a new block is entered.

  procedure ExitBlock(); override;

  

Updates the cumulative execution time when a block is exited.

  property MaxDepth: Integer; [rw]

  

Maximum depth for execution time data in the nested levels for the block handler.

  property TimeDiff []: QWord; [r]

  

Calculates the cumulative execution time for the block at the specified nesting level.

  property Nested []: QWord; [r]

  

Execution time data for the block at the specified nesting level.

end;

Inheritance

TLazLoggerBlockTimer

  

Provides profiler instrumentation for execution times in a logger class.

|

TLazLoggerBlockHandler

|

TRefCountedObject

  

Implements a thread-safe reference-counted class which performs free notifications.

|

TFreeNotifyingObject

  

Base class used to implement objects which perform free notifications.

|

TObject


Version 4.0 Generated 2025-05-03 Home