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 whilst the parser arena is available, including before the first load when all traffic counters are zero
Statistics
BlockSize,RetainedBlockCountandRetainedBytesdescribe storage retained by theTHotPDFinstance for reusePeakUsedBytes,AllocationCountandBytesRequesteddescribe scratch demand during the most recent loadBlockAllocationCountcounts newly allocated blocks, whilstReusedAllocationCountcounts 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