THPDFMappedFileStatistics Record
回報記憶體映射檔案來源在一次載入期間收集的組態、幾何、映射、快取與傳輸遙測
宣告
THPDFMappedFileStatistics= record
FileSize: Int64;
ConfiguredWindowSize: Int64;
ConfiguredCacheWindowCount: Integer;
WindowSize: Int64;
CacheWindowCount: Integer;
MappedByteLimit: Int64;
CurrentMappedBytes: Int64;
PeakMappedBytes: Int64;
GeometryChangeCount: Int64;
SequentialReadCalls: Int64;
RandomReadCalls: Int64;
AdaptiveGeometry: Boolean;
SequentialGeometryActive: Boolean;
RandomGeometryActive: Boolean;
ReadCalls: Int64;
BytesRead: Int64;
MapCount: Int64;
CacheHits: Int64;
FallbackReadCalls: Int64;
FallbackBytes: Int64;
DirectTransferCalls: Int64;
DirectTransferBytes: Int64;
end;
單元
HPDFObjs
欄位
| 欄位 | 用途 |
|---|---|
FileSize | 映射來源檔案的大小(位元組) |
ConfiguredWindowSize | 透過 LocalFileMappingWindowSize 設定的視窗大小 |
ConfiguredCacheWindowCount | 透過 LocalFileMappingCacheWindows 設定的常駐視窗數 |
WindowSize | 此來源實際生效的視窗大小 |
CacheWindowCount | 視窗快取目前持有的視窗數 |
MappedByteLimit | 來源同時保持映射的位元組上限 |
CurrentMappedBytes | 目前映射的位元組數 |
PeakMappedBytes | 載入期間映射位元組的高水位線 |
GeometryChangeCount | 自適應幾何切換視窗布局的次數 |
SequentialReadCalls | 分類為循序的讀取請求數 |
RandomReadCalls | 分類為隨機存取的讀取請求數 |
AdaptiveGeometry | 來源啟用自適應幾何選擇時為 True |
SequentialGeometryActive | 循序視窗幾何作用中時為 True |
RandomGeometryActive | 隨機存取視窗幾何作用中時為 True |
ReadCalls | 經映射來源服務的讀取請求總數 |
BytesRead | 這些讀取交付的位元組總數 |
MapCount | 檔案檢視映射進視窗的次數 |
CacheHits | 由已常駐視窗滿足的讀取數 |
FallbackReadCalls | 退回視窗快取之外一般檔案讀取的讀取數 |
FallbackBytes | 後備讀取交付的位元組數 |
DirectTransferCalls | 略過視窗快取的串流對串流直接傳輸次數 |
DirectTransferBytes | 直接傳輸搬移的位元組數 |
使用說明
- 用
THotPDF.GetLastMappedFileStatistics讀取記錄;只有上一次載入確實使用記憶體映射時才傳回 True - 載入前用
LocalFileMappingWindowSize、LocalFileMappingCacheWindows與LocalFileMappingAdaptiveGeometry調校幾何 SequentialGeometryActive與RandomGeometryActive是目前模式互斥的快照