THotPDF.GetLastParserArenaStatistics
Returns allocation and reuse diagnostics for short-lived parser storage used by the most recent PDF load
Declaration
function GetLastParserArenaStatistics(
out Statistics: THPDFParserArenaStatistics): boolean;
Return value
Returns True while the parser arena is available, including before the first load when all traffic counters are zero
Statistics
BlockSize,RetainedBlockCount, andRetainedBytesdescribe storage retained by theTHotPDFinstance for reusePeakUsedBytes,AllocationCount, andBytesRequesteddescribe scratch demand during the most recent loadBlockAllocationCountcounts newly allocated blocks, whileReusedAllocationCountcounts allocations served from retained storageResetCountidentifies a completed load-session reset,TokenCountcounts arena-backed tokens, andTemporaryObjectElisionCountcounts dictionary-key name objects avoided by direct parsing
Lifetime
The arena stores only transient parser bytes; returned PDF objects, dictionary names, stream data, and other persistent values own their storage independently
See also: Scalable Loading, LoadFromStream, LoadFromRandomAccessSource