Build57 Startup+FrameTime 单 CoreProfile 连续采集架构验收

日期:2026-09-16 · 证据:E2 构建与静态契约 · 状态:implemented · partial

架构演进与核心设计

针对真机测试中 StartupTiming = ON, FrameTime = ON 时启动阶段闭环触发 CoreProfile 停止、4秒 drain 超时与重新启动导致 FrameTime 首值延迟 10+ 秒的架构瓶颈,彻底废弃停止重启轮转机制,实施统一单 CoreProfile 连续采集:

  1. 单 CoreProfile 连续采集(Unified Continuous Tap):
  2. 单 Decoder 连续消费与无缝交接:

E2 验证结果

验证项指标 / 结果状态
Python Sidecar 测试套件399/399 通过(新增 9 项单 CoreProfile 连续采集专项单测)通过
Swift 客户端测试套件145/145 通过(含 3 项显式基准跳过,0 失败)通过
冻结 Sidecar Core 探针ready=true,63 Metric Contracts,9 Source Families,pymobiledevice3 11.3.1通过
站点知识库门禁与构建63 项 Registry 契约校验通过,VitePress 0 报错 0 死链通过

专项测试矩阵(test_unified_core_profile.py)

序号测试用例验证要点耗时
1test_core_profile_filters_startup_and_frame_union联合 filters 正确包含 launch trace 与呈现帧 0x31800000<0.01s
2test_startup_and_frame_uses_single_core_profile_tap单 CoreProfile Tap 启动,start 次数恰好为 1<0.01s
3test_startup_complete_does_not_stop_core_profile_in_unified_mode启动完成后 tap 不执行 stop/drain/restart<0.01s
4test_startup_only_stops_and_drains_core_profile纯启动模式下启动完成后正常安全排空停止<0.01s
5test_frame_only_uses_presented_frame_filter_without_startup_decoder纯帧模式直接使用呈现帧 filter,不走启动解码器<0.01s
6test_presented_frames_not_duplicated无双重解码,呈现帧唯一提取与输出<0.01s
7test_frame_time_continuous_across_startup_boundary跨启动完成边界帧时间戳严格连续单调<0.10s
8test_source_epoch_stays_constant_in_unified_mode连续模式下 sourceEpoch 全程保持为 1<0.01s
9test_startup_report_complete_in_unified_mode连续模式下 Startup 实时报告正常发布且状态完整<0.01s

测试分发包与签名校验

Build 57 测试安装包已完成生成与严格校验:

证据边界与未关门门禁

本机未配置 Apple Notary Service Keychain Profile,公证与 ticket stapling 门禁仍开放;GPL-3.0 法务评估门禁仍开放;当前测试包仅供内部联调与真机复测,交付状态标记为 partial。