THPDFGraphTransactionStatistics Record
copy-on-write 그래프 트랜잭션 스택의 상태를 스냅샷으로 보여줍니다. 활성 플래그, 중첩 깊이, 스냅샷·추가 객체 수, 상주·스필·피크 스냅샷 메모리를 담습니다
선언
THPDFGraphTransactionStatistics= record
Active: boolean;
Depth: Integer;
SnapshotCount: Integer;
AddedObjectCount: Integer;
ResidentSnapshotBytes: Int64;
SpilledSnapshotBytes: Int64;
PeakResidentSnapshotBytes: Int64;
end;
유닛
HPDFDoc
필드
| 필드 | 목적 |
|---|---|
Active | BeginGraphTransaction이 연 트랜잭션이 아직 열려 있는 동안 true |
Depth | 현재 스택에 쌓인 중첩 트랜잭션 프레임 수 |
SnapshotCount | 모든 프레임에 걸쳐 쥐고 있는 copy-on-write 객체 스냅샷 수 |
AddedObjectCount | 가장 바깥 트랜잭션이 시작된 뒤 추가된 간접 객체 수. 그 트랜잭션의 초기 객체 수와 비교해 잽니다 |
ResidentSnapshotBytes | 현재 모든 프레임에 걸쳐 메모리에 있는 스냅샷 바이트 |
SpilledSnapshotBytes | spilling 메커니즘이 메모리 밖으로 내보낸 스냅샷 바이트 |
PeakResidentSnapshotBytes | 지금까지 관측한 최대 상주 스냅샷 총량. 트랜잭션이 없을 때도 보고됩니다 |
사용 참고 사항
BeginGraphTransaction과CommitGraphTransaction또는RollbackGraphTransaction사이에서THotPDF.GetGraphTransactionStatistics로 요청하면 rollback 비용이 자라는 모습을 지켜볼 수 있습니다Active가false이면PeakResidentSnapshotBytes만 마지막 최고 수위를 간직하고 나머지 카운터는 0입니다- 큰 문서를 오래 편집하는 세션의 메모리 예산을 정할 때
ResidentSnapshotBytes와SpilledSnapshotBytes를 합해 씁니다