GetDisplayListCacheInfo

描繪

描述

傳回 JSON 報告,涵蓋顯示清單的保留、重用、記憶體壓力與並行擷取

語法

Delphi

Function TPDFlib.GetDisplayListCacheInfo(Out Info: WideString): Integer;

DLL

const wchar_t* DLGetDisplayListCacheInfo(int InstanceID);
const char* DLGetDisplayListCacheInfoA(int InstanceID);

ActiveX

Function PDFlib::GetDisplayListCacheInfo(ByRef Info As String) As Long

參數

Info接收 enabled、entries、hits、misses、bytes、maxEntries、maxBytes、replayCost、evictions、bypasses、rejectedCaptures 與 buildContentions 欄位

傳回值

1已傳回報告

備註

bytes 是保留記錄、動態陣列與字串酬載的保守估計

replayCost 估計的是重建所有保留清單所省下的 token 與運算元解析工作量

buildContentions 統計因另一個描繪器還在建置同一來源而改走私有解析的查詢次數,避免重播不完整的清單