外观
CORE-10 Energy、Battery、Thermal 与 GPU Counter 公式冻结
| 指标 | 原始字段 | 转换与单位 | scope | 缺失/窗口 | 版本 |
|---|---|---|---|---|---|
| 六项 Energy cost | energy.cpu/gpu/networking/location/display.cost、energy.overhead | 有限数值原样承接,source-native-cost | process | 字段缺失=missing;不换算为瓦特 | energy-cost-gauge.candidate.v1 |
| Battery Current | InstantAmperage | abs(raw),mA candidate | device | 缺失=missing | battery-electrical.candidate.v1 |
| Battery Voltage | Voltage | 原样,mV candidate | device | 缺失=missing | 同上 |
| Battery Power | 上述电流与电压 | abs(mA) × mV / 1000,mW candidate | device | 任一缺失则 missing | 同上 |
| Battery Temperature | Temperature | 原始值原样保存为 source-native | device | 没有显式 scale 时不猜摄氏度 | battery-temperature-raw.v1 |
| ThermalStatus | ThermalStatus | 有限枚举值原样保存 | device | 枚举映射未知,保持 candidate | thermal-status-raw.v1 |
| GPU Counter | 运行时 counterName → finite value | 动态 ID ios.gpu.counter.<slug>;原始单位与 schema 一并保存 | device | 未知 schema=unsupported-schema;不猜名称/单位 | gpu-counter-dynamic.candidate.v1 |
Energy 与 Battery 是不同语义:Energy debug gauge 是进程成本评分,不转换为设备电功率。所有值计算层不取整;动态 GPU Counter 只能进入 Session 局部 Registry,不污染全局静态 Registry。
实施与验收
- Metric Engine 新增六项 Energy cost、Battery Current/Voltage/Power、Temperature raw、ThermalStatus raw。
- CLI
record --device-conditions可显式启用独立 diagnostics relay sideband;它不创建第二条 DTX reader。 - GPU Counter 五个 selector 已形成 pmd3 DTX control surface;运行时只接受
schemaKnown=true的有限 counter map。 - Python 68/68、Swift 62/62 通过(E2),静态 Registry 48 项。Battery/GPU 真机协议与单位仍保持门禁。