THPDFParserArenaStatistics Record

Reports block, allocation, token, and elision telemetry from the parser arena allocator

Declaration

THPDFParserArenaStatistics= record
  BlockSize: Integer;
  RetainedBlockCount: Integer;
  RetainedBytes: Int64;
  PeakUsedBytes: Int64;
  AllocationCount: Int64;
  BytesRequested: Int64;
  BlockAllocationCount: Int64;
  ReusedAllocationCount: Int64;
  ResetCount: Int64;
  TokenCount: Int64;
  TemporaryObjectElisionCount: Int64;
end;

Unit

HPDFDoc

Fields

FieldPurpose
BlockSizeCapacity of one arena block as configured at creation (65536 by default)
RetainedBlockCountNumber of blocks the arena currently holds for reuse
RetainedBytesSum of the capacities of all retained blocks
PeakUsedBytesHighest number of arena bytes in use during the session
AllocationCountNumber of allocation requests served from the arena
BytesRequestedTotal bytes requested across all allocations
BlockAllocationCountNumber of fresh blocks taken from the memory manager
ReusedAllocationCountAllocations satisfied from freed space inside existing blocks
ResetCountNumber of times the arena mark was rolled back or the arena was reset
TokenCountParser tokens counted by the owning load session, filled in by THotPDF after the arena reports
TemporaryObjectElisionCountTemporary parser objects elided during the session, also filled in by THotPDF

Usage notes

Related APIs