Repository navigation
List the state and savings of every insight model - #25
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--category,insightslists every DevTools insight model of the selected navigation inmodels, with itsstate, estimatedmetricSavingsandwastedBytes. Failing models come first, so agents can see what to fix before they read the detail cards.fcpMs,lcpMs,tbtMs,inpMs) andcls. Zero savings are left out.warningswith 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,DOMSizeandLCPDiscovery) can follow in separate PRs.Verification
npm test(189 tests),npm run check,npm run buildinsightson a real Chrome trace lists all 19 models in TOON, Markdown and JSON, andreport --sections insightsincludes them.