feat(monitors): 接入统一面板数据与按需进程采样

This commit is contained in:
2026-11-02 22:58:33 +08:00
parent 7df2bbc7c1
commit 604086bbbb
14 changed files with 391 additions and 32 deletions
@@ -14,6 +14,10 @@ nonisolated enum SamplingDiagnostics {
]
payload["cpu"] = snapshot.cpu?.usage
payload["cores"] = snapshot.cpu?.cores.count
payload["gpuUsage"] = snapshot.gpuUsage
payload["gpuCoreCount"] = snapshot.gpu?.coreCount
payload["processEnumerated"] = snapshot.processes?.enumerated
payload["processReadable"] = snapshot.processes?.readable
payload["memoryUsed"] = snapshot.memory?.used
payload["memoryTotal"] = snapshot.memory?.total
payload["swapUsed"] = snapshot.memory?.swapUsed