THPDFGraphTransactionStatistics Record
快照寫入時複製圖形交易堆疊的狀態:作用中旗標、巢狀深度、快照與新增物件計數,以及常駐、溢出與尖峰快照記憶體
宣告
THPDFGraphTransactionStatistics= record
Active: boolean;
Depth: Integer;
SnapshotCount: Integer;
AddedObjectCount: Integer;
ResidentSnapshotBytes: Int64;
SpilledSnapshotBytes: Int64;
PeakResidentSnapshotBytes: Int64;
end;
單元
HPDFDoc
欄位
| 欄位 | 用途 |
|---|---|
Active | BeginGraphTransaction 開啟的交易尚未結束時為 true |
Depth | 堆疊上目前的巢狀交易框架數 |
SnapshotCount | 所有框架持有的寫入時複製物件快照數 |
AddedObjectCount | 最外層交易開始以來新增的間接物件數,以其初始物件計數為基準 |
ResidentSnapshotBytes | 所有框架目前常駐在記憶體中的快照位元組數 |
SpilledSnapshotBytes | 被溢出機制移出記憶體的快照位元組數 |
PeakResidentSnapshotBytes | 觀察到的最高常駐快照總量;沒有作用中的交易時也會回報 |
使用說明
- 在
BeginGraphTransaction與CommitGraphTransaction或RollbackGraphTransaction之間向THotPDF.GetGraphTransactionStatistics索取,觀察回復成本如何增長 Active為false時各計數器歸零,只有PeakResidentSnapshotBytes保留最後的高水位線- 用
ResidentSnapshotBytes加SpilledSnapshotBytes估算大型文件長時間編輯工作階段的記憶體預算