รีเคิร์ด THPDFGraphTransactionStatistics

สแนปช็อตสถานะของ stack ทำ transaction กราฟแบบ copy-on-write: แฟล็ก active, ความลึกการซ้อน, จำนวน snapshot กับ object ที่เพิ่ม และหน่วยความจำ snapshot ทั้งแบบค้างในหน่วยความจำ แบบถูก spill ออก และค่าสูงสุด

การประกาศ

THPDFGraphTransactionStatistics= record
  Active: boolean;
  Depth: Integer;
  SnapshotCount: Integer;
  AddedObjectCount: Integer;
  ResidentSnapshotBytes: Int64;
  SpilledSnapshotBytes: Int64;
  PeakResidentSnapshotBytes: Int64;
end;

ยูนิต

HPDFDoc

ฟิลด์

ฟิลด์วัตถุประสงค์
Activetrue ขณะ transaction ที่เปิดด้วย BeginGraphTransaction ยังไม่ถูกปิด
Depthจำนวน transaction frame ที่ซ้อนอยู่ใน stack ตอนนี้
SnapshotCountจำนวน snapshot ของ object แบบ copy-on-write ที่ถือไว้รวมทุก frame
AddedObjectCountจำนวน indirect object ที่เพิ่มตั้งแต่ transaction ชั้นนอกสุดเริ่ม นับเทียบกับจำนวน object ตอนต้นของมัน
ResidentSnapshotBytesจำนวนไบต์ snapshot ที่ค้างอยู่ในหน่วยความจำรวมทุก frame ตอนนี้
SpilledSnapshotBytesจำนวนไบต์ snapshot ที่กลไก spill ย้ายออกจากหน่วยความจำไป
PeakResidentSnapshotBytesยอด snapshot ในหน่วยความจำสูงสุดที่เคยเห็น รายงานให้แม้ตอนนี้ไม่มี transaction ทำงานอยู่

หมายเหตุการใช้งาน

API ที่เกี่ยวข้อง