CORE-8 · P2 · E2
Raw 到 Metric 与五类内存承接
归档快照:公式、实现范围与验收边界。站点正文位于 /devlog/p2-collector-core-core8-metric-engine。
公式与输出
RawMetricEngine 将不可变 raw envelope 离线派生为 perfowl.metric-frame/1;累计 counter 使用相邻同 PID/generation 差分除以真实单调时钟窗口。首点 warmup、负差 reset、缺失和身份失败均不输出 0。
五类内存分别为 Memory/physFootprint、XcodeMemory/candidate alias、RealMemory/memResidentSize、VirtualMemory/memVirtualSize、AvailableMemory/显式 byte 源。
验收结果
Python 全量 65/65、Swift 全量 62/62 通过(E2)。Registry 唯一性、wire 解码、内存 CSV 列、counter reset、process network 窗口和 raw hash 绑定均有自动化断言。与 Xcode/PerfDog 的数值校准、跨 iOS 和 AvailableMemory 稳定来源继续保持开放。