Skip to content

List the state and savings of every insight model - #25

Merged
jackfranklin merged 1 commit into
ChromeDevTools:mainfrom
nucliweb:insight-model-states
Nov 26, 2026
Merged

jackfranklin merged 1 commit into
ChromeDevTools:mainfrom
nucliweb:insight-model-states

Conversation

@nucliweb

Copy link
Copy Markdown
Contributor

Summary

  • Without --category, insights lists every DevTools insight model of the selected navigation in models, with its state, estimated metricSavings and wastedBytes. Failing models come first, so agents can see what to fix before they read the detail cards.
  • Metric savings use milliseconds (fcpMs, lcpMs, tbtMs, inpMs) and cls. Zero savings are left out.
  • A model that the engine cannot compute is reported in warnings with its key and error, instead of being dropped.
  • insights --category <name> output does not change.

First part of the insight coverage item in #9. Model-specific details (for example ForcedReflow, DOMSize and LCPDiscovery) can follow in separate PRs.

Verification

  • npm test (189 tests), npm run check, npm run build
  • insights on a real Chrome trace lists all 19 models in TOON, Markdown and JSON, and report --sections insights includes them.

Without --category, insights lists every DevTools insight model of the selected navigation in `models`, with its state, estimated metric savings and wasted bytes. Failing models come first so agents can prioritize. Savings use milliseconds (fcpMs, lcpMs, tbtMs, inpMs) and cls, and zero savings are left out. Models that the engine cannot compute are reported in warnings.
@jackfranklin
jackfranklin merged commit ab7ad30 into ChromeDevTools:main Nov 26, 2026
10 checks passed
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.

2 participants