THotPDF.GetLastParserArenaStatistics
返回最近一次 PDF 加载所用的短生命周期解析器存储的分配与复用诊断信息
声明
function GetLastParserArenaStatistics(
out Statistics: THPDFParserArenaStatistics): boolean;
返回值
解析器 arena 可用期间返回 True,包括首次加载之前所有流量计数器都为零的时候
统计
BlockSize、RetainedBlockCount和RetainedBytes描述THotPDF实例为复用而保留的存储PeakUsedBytes,AllocationCount,以及BytesRequesteddescribe 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