property PageObjectSnapshotCacheCount: Integer; // read only
该值统计当前页面对象快照仍然有效的页面数,因此在已加载文档时最多为 Min(PageObjectSnapshotCacheCapacity, PageCount)
计数随 PageObjectsSnapshot 完成并缓存新快照而增长,在容量压力、页面编辑或文档重新加载使条目失效时下降
读取由原生 PDFium 页面访问所用的渲染锁保护,因此该值与并发渲染保持一致
在未加载文档或 PageObjectSnapshotCacheCapacity 为零时,计数为 0
计数是某一时刻的占用数值;要了解累积的查找效果,请使用 PageObjectSnapshotCacheHitCount 和 PageObjectSnapshotCacheMissCount
Snapshot := Pdf.PageObjectsSnapshot[1];
LogPageObjectSnapshotCache(Pdf.PageObjectSnapshotCacheCount,
Pdf.PageObjectSnapshotCacheCapacity);