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 估算通过重建所有保留列表可避免的标记和操作数解析工作量

buildContentions 统计因另一渲染器仍在构建同一源而私下解析的查找次数,从而防止重放部分列表