新增時間:12 張
通訊協定
收集器
定義於 fuchsia.memory.inspection/inspection.fidl
取得紫紅色裝置的記憶體用量。
CollectJsonStats
寫入 socket 擷取記憶體用量與記憶體值區定義的 JSON 擷取內容,以及格式正確的 UTF-8 字串。將所有資料寫入通訊端後,伺服器會關閉通訊端。
TODO(https://fxbug.dev/42073090):記下 JSON 的結構定義。
輸出範例: {"Capture": { "Time":28477260758625, "Kernel":{ "total":1610612736, "free":170565632, "wired":67395584, "Capture": { "Time":28477260758625, "Kernel":{ "total":1610612736, "free":170565632, "wired":6739558320
基於大小原因: - 處理程序和 Vmos 有一個初始項目,其中包含其餘項目的欄位名稱。 - VMO 的名稱是 VMONames 陣列中的索引。
已淘汰:14
要求
| 名稱 | 類型 | 
|---|---|
| socket | handle<socket> | 
CollectJsonStatsWithOptions
新增日期:14 天
要求
| 名稱 | 類型 | 
|---|---|
| payload | CollectorCollectJsonStatsWithOptionsRequest | 
資料表
CollectorCollectJsonStatsWithOptionsRequest 資源
定義於 fuchsia.memory.inspection/inspection.fidl
| 序數 | 欄位 | 類型 | 說明 | 
|---|---|---|---|
| 1 | socket | handle<socket> | |
| 2 | include_starnix_processes | bool |