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;此 record 透過匯入器的 Statistics 屬性暴露,並在每次 RenderHTML5 呼叫開始時重置
這些計數器與匯入器預算配對,可把已消耗的工作對照 MaxDOMNodes、MaxCSSRules、MaxLayoutOperations 與資源上限比較
ResourceRequestCount 計算每個參照,ResourceLoadCount 計算被接受者,ResourceRejectCount 計算因數量或位元組預算被拒者