THPDFLayoutDiagnosticStatistics 记录
描述布局诊断机制保留、丢弃、比较、检测、绘制和通知了哪些内容的计数器
声明
THPDFLayoutDiagnosticStatistics= record
RetainedCount: Integer;
DroppedCount: Integer;
TrackedBounds: Int64;
DroppedBounds: Int64;
OverlapComparisons: Int64;
OverlapCount: Int64;
OverlaysDrawn: Int64;
LivePreviewNotifications: Int64;
end;
单元
HPDFDoc
字段
| 字段 | 用途 |
|---|---|
RetainedCount | 当前可通过诊断访问器取回的诊断记录数 |
DroppedCount | 因保留预算耗尽而丢弃的诊断记录数 |
TrackedBounds | 登记用于跟踪和重叠检测的放置矩形数 |
DroppedBounds | 因达到 MaxTrackedBounds 而丢弃的矩形数 |
OverlapComparisons | 已执行的两两矩形比较次数,对应上限 MaxOverlapComparisons |
OverlapCount | 比较实际检测到的重叠数 |
OverlaysDrawn | 渲染到页面上的诊断叠加数 |
LivePreviewNotifications | 启用实时预览期间发出的通知数 |
使用说明
- 布局运行结束后用
THotPDF.GetLayoutDiagnosticStatistics读取,确认诊断预算是否足够 DroppedCount或DroppedBounds非零说明报告不完整:调高THPDFLayoutDiagnosticOptions中的上限并重新运行- 把
OverlapCount与OverlapComparisons对比,即可判断检测过程的工作成效