Skip to content

feat: v1.11.0 inspector hardening and console upgrades - #105

Merged
AmisKwok merged 2 commits into
mainfrom
feat/inspector-hardening-v1.11.0
Sep 10, 2026
Merged

AmisKwok merged 2 commits into
mainfrom
feat/inspector-hardening-v1.11.0

Conversation

@AmisKwok

@AmisKwok AmisKwok commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Summary / 摘要

v1.11.0 hardens the in-app inspector with phased FPS timing, adaptive jank detection, platform-level error capture, persisted alerts, and an editable network replay editor.
v1.11.0 强化应用内检查器:分阶段 FPS 耗时、自适应卡顿阈值、平台级错误捕获、告警持久化,以及可编辑的网络重放编辑器。

Changes / 变更

  • Phased FPS timing (buildDurationUs / rasterDurationUs) with an adaptive jank threshold / 分阶段 FPS 耗时 + 自适应卡顿阈值
  • PlatformDispatcher.onError capture alongside FlutterError.onError / 与 FlutterError.onError 一并捕获 PlatformDispatcher.onError
  • Alert persistence across restarts with replay in the Alerts tab / 告警跨重启持久化并在 Alerts 标签回放
  • Editable network replay editor (query params only) / 可编辑网络重放编辑器(仅查询参数)
  • Bounded AlertService throttle map, safe Hive/SharedPreferences sort, binary-safe responses / AlertService 节流表有界、Hive/SharedPreferences 安全排序、二进制响应容错
  • New public utils sensitive_data / inspector_version; fps_service promoted to public / 新增公共工具 sensitive_data/inspector_version,fps_service 提升为公开导出

Context / 背景

These changes close the gaps where high-refresh displays were forgiven by a fixed 16ms threshold, platform-boundary errors escaped aggregation, and alerts were lost on restart. The replay editor and binary-safe responses also make network inspection more reliable.
本次改动填补了高刷屏被固定 16ms 阈值放过、平台边界异常未被聚合、告警重启后丢失等缺口;重放编辑器与二进制容错也提升网络检查的可靠性。

Checklist / 检查项

  • Title follows Conventional Commits / 标题符合约定式提交
  • CI checks pass after merge / 合入后 CI 通过

Test plan

  • flutter analyze and flutter test pass locally / 本地 flutter analyze 与 flutter test 通过
  • Verify FPS build/raster split and adaptive threshold on 60Hz & 120Hz / 在 60Hz 与 120Hz 上验证 FPS build/raster 分项与自适应阈值
  • Trigger an alert, restart, confirm it replays in the Alerts tab / 触发一次告警,重启后在 Alerts 标签确认回放

🤖 Generated with Zero Buddy

- Phased FPS timing (build/raster split) with adaptive jank threshold

- PlatformDispatcher.onError capture alongside FlutterError.onError

- Persisted alerts replay in the Alerts tab after restart

- Editable network replay editor (query params only)

- Bounded AlertService throttle map; safe Hive/SP sort; binary-safe responses

- New public utils: sensitive_data, inspector_version; fps_service promoted
- Skip the plugin's own zero_inspector_kit.db during database scanning

- Open scanned user DBs read-only without a version so sqflite stops writing PRAGMA user_version

Fixes 'attempt to write a readonly database (code 8 SQLITE_READONLY)' on Android
@AmisKwok
AmisKwok merged commit f2eaaa2 into main Sep 10, 2026
11 checks passed
@AmisKwok
AmisKwok deleted the feat/inspector-hardening-v1.11.0 branch September 10, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant