Skip to content

CORE-10 Energy、Battery、Thermal 与 GPU Counter 公式冻结 ​

指标原始字段转换与单位scope缺失/窗口版本
六项 Energy costenergy.cpu/gpu/networking/location/display.cost、energy.overhead有限数值原样承接,source-native-costprocess字段缺失=missing;不换算为瓦特energy-cost-gauge.candidate.v1
Battery CurrentInstantAmperageabs(raw),mA candidatedevice缺失=missingbattery-electrical.candidate.v1
Battery VoltageVoltage原样,mV candidatedevice缺失=missing同上
Battery Power上述电流与电压abs(mA) × mV / 1000,mW candidatedevice任一缺失则 missing同上
Battery TemperatureTemperature原始值原样保存为 source-nativedevice没有显式 scale 时不猜摄氏度battery-temperature-raw.v1
ThermalStatusThermalStatus有限枚举值原样保存device枚举映射未知,保持 candidatethermal-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 真机协议与单位仍保持门禁。

Perfowl · Performance Observer