Skip to content

profiler-cli: include per-marker fields and data in --list --json - #6275

Open
fqueze wants to merge 1 commit into
firefox-devtools:mainfrom
fqueze:profiler-cli-list-json-fields-pr
Open

profiler-cli: include per-marker fields and data in --list --json#6275
fqueze wants to merge 1 commit into
firefox-devtools:mainfrom
fqueze:profiler-cli-list-json-fields-pr

Conversation

@fqueze

@fqueze fqueze commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Main | Deploy preview

thread markers --list --json could filter on a payload field (--search eventType:keydown) without returning it, so reading the values back meant one marker info call per marker. Rows now carry markerType, fields, data and innerWindowID; no existing key changes value.

data elides a CompositorScreenshot's base64 JPEG to { elided: true, length, preview }, which keeps a 100-row response at 27KB instead of 940KB. Elision is keyed by field identity rather than size: a screenshot URL and a real Preference Read.prefValue measured 2855 and 2939 chars, so no byte cap separates them.

`thread markers --list --json` could filter on a payload field
(`--search eventType:keydown`) without returning it, so reading the values back
meant one `marker info` call per marker. Rows now carry `markerType`, `fields`,
`data` and `innerWindowID`; no existing key changes value.

`data` elides a CompositorScreenshot's base64 JPEG to
`{ elided: true, length, preview }`, which keeps a 100-row response at 27KB
instead of 940KB. Elision is keyed by field identity rather than size: a
screenshot URL and a real `Preference Read.prefValue` measured 2855 and 2939
chars, so no byte cap separates them.
@fqueze
fqueze requested a review from canova August 20, 2026 16:58
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.34884% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.80%. Comparing base (9203f11) to head (baa4446).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-query/formatters/marker-info.ts 95.34% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6275   +/-   ##
=======================================
  Coverage   83.79%   83.80%           
=======================================
  Files         350      350           
  Lines       37583    37615   +32     
  Branches    10459    10469   +10     
=======================================
+ Hits        31492    31522   +30     
- Misses       5664     5666    +2     
  Partials      427      427           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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