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

TLazLoggerBlockMemWatch

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

Provides profiler instrumentation for memory allocation (heap) in a logger class.

Declaration

Source position: lazloggerprofiling.pas line 43

type TLazLoggerBlockMemWatch = class(TLazLoggerBlockHandler)

public

  constructor Create;

  

Constructor for the class instance.

  procedure EnterBlock(); override;

  

Captures memory allocation and nesting level when a block is entered.

  procedure ExitBlock(); override;

  

Updates the cumulative memory allocation for the parent block when a block is exited.

  property MaxDepth: Integer; [rw]

  

Maximum depth the nested levels in the block handler.

  property MemDiff []: Int64; [r]

  

Indicates heap memory allocation for the block at the specified nesting level.

  property Nested []: Int64; [r]

  

Memory allocation data for the block at the specified nesting level.

end;

Inheritance

TLazLoggerBlockMemWatch

  

Provides profiler instrumentation for memory allocation (heap) 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