Proposal: `compare` command for two traces
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 15/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- cli, performance
Rechercherichtung
This is a design proposal, not a ready change: the open questions on noise, the compare vs diff naming, and whether the command belongs in the CLI at all are unresolved. Before writing code, read the existing diff command and its aggregation of self time, plus the overview output it would reuse. Done means the maintainers have settled scope and naming, and a first version comparing one pair of traces is agreed on.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Follow-up to #9.
Use case
Check the impact of a change: record a trace on main and another on a PR branch, and see what changed. Today you run overview and other commands on both traces and compare the output by hand, or ask an agent to do it, which costs tokens and is easy to get wrong.
Sketch
trace-engine-cli compare baseline.json.gz candidate.json.gz
The output would include:
- Core Web Vitals per metric: baseline, candidate, delta and rating change (for example
good → needs-improvement). - Main thread busy time (total minus idle) per category. Idle is left out because two recordings rarely have the same length.
- Long task count and blocking time (sum of
dur - 50ms), namedblockingMsso it is not confused with Lighthouse TBT. - Top function regressions by self time, reusing the aggregation in
diff. - A warning if the main URLs differ.
Open questions
- Noise: one trace per side gives noisy CWV deltas. A first version could compare a single pair and focus on rating changes. A later version could accept several traces per side and compare medians.
- Naming:
diffcompares two windows in one trace, andcomparewould compare two traces. The names could be confusing. - Scope: does this belong in this CLI, or is it better left to the agent (run
overviewon both traces and compare)?
What are your main concerns about it?
- Vorherrschende Sprache
- TypeScript
- Sterne
- 15
- Forks
- 4
- Ø Merge
- 1 T. 17 Std.
- Gemergte PRs (30 T.)
- 22
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ChromeDevTools/trace-engine-cli
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 53/100
ChromeDevTools/trace-engine-cli#28 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
ChromeDevTools/trace-engine-cli#27 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
ChromeDevTools/trace-engine-cli#9 · 5 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in ChromeDevTools/trace-engine-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:vscode bug has repro platform:macos platform:vscode regression
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDOffencheck:passed streams:add
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag
-
effort/l priority/p1 risk/high triage/core
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
iflytek/skillhub#1188 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Fission-AI/OpenSpec#2337 ·
Maintainer antworten meist innerhalb von 1 Tag