THPDFHTMLImportStatistics 记录

描述一次 HTML5 导入运行的计数器

THPDFHTMLImportStatistics = record
  ProfileVersion: Integer;
  ParsedNodeCount: Integer;
  CSSRuleCount: Integer;
  LayoutOperationCount: Integer;
  PageBreakCount: Integer;
  TableCount: Integer;
  FormControlCount: Integer;
  ResourceRequestCount: Integer;
  ResourceLoadCount: Integer;
  ResourceRejectCount: Integer;
  ResourceBytes: Int64;
  TextLineCount: Integer;
  HyphenatedLineCount: Integer;
  DiagnosticCount: Integer;
  FlexContainerCount: Integer;
  GridContainerCount: Integer;
end;

所在单元是 HPDFHTMLImport;该记录通过导入器的 Statistics 属性暴露,并在每次 RenderHTML5 调用开始时重置

这些计数器与导入器预算一一对应,便于把已消耗的工作量与 MaxDOMNodes、MaxCSSRules、MaxLayoutOperations 及资源限制对照

ResourceRequestCount 统计每个引用,ResourceLoadCount 统计被接受的,ResourceRejectCount 统计因数量或字节预算被拒绝的