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 a single arena block as configured at creation (65536 by default)
RetainedBlockCountNumber of blocks the arena currently holds ready for reuse
RetainedBytesSum of the capacities of every retained block
PeakUsedBytesHighest number of arena bytes in use at any point in the session
AllocationCountNumber of allocation requests that the arena served
BytesRequestedTotal bytes requested across every allocation
BlockAllocationCountNumber of brand-new blocks taken from the memory manager
ReusedAllocationCountAllocations satisfied out of freed space inside existing blocks
ResetCountNumber of times the arena mark was rolled back or the arena reset
TokenCountParser tokens counted by the owning load session, filled in by THotPDF once the arena reports
TemporaryObjectElisionCountTemporary parser objects elided during the session, likewise filled in by THotPDF

Usage notes

Related APIs