GetResourceUsageStatisticsJSON

Diagnostics, performance

Opis

Vraća jedan JSON objekt sa statistikama strukture, tokova, slika, fontova i predmemorije kroz dokumente u vlasništvu bibliotečke instance

Sintaksa

Delphi

Function TPDFlib.GetResourceUsageStatisticsJSON: WideString;

Povratne vrijednosti

A JSON object containing object and resource counts, estimated structure bytes, encoded and decoded stream bytes, parser and stream failures, peak decoded-stream size, and object, object-stream and display-list cache statistics

Napomene

estimatedBytes covers owned PDF object structures and excludes allocator metadata, renderer surfaces and third-party native allocations

operationDecodedBytes automatski se resetira na početku svake praćene operacije, dok totalDecodedBytes nastavlja dok se ne pozove ResetResourceUsageStatistics

objectStreamCache includes current decoded payload and offset-table bytes, maxBytesPerDocument, and cumulative evictions alongside entries, hits and misses

displayListCache includes retained bytes, entry and byte limits, estimated replayCost, evictions, oversized bypasses, rejected incomplete captures and concurrent build contention