Skip to content

profiler-cli: accept several marker handles and ranges in marker info - #6277

Open
fqueze wants to merge 1 commit into
firefox-devtools:mainfrom
fqueze:profiler-cli-marker-info-multi-pr
Open

profiler-cli: accept several marker handles and ranges in marker info#6277
fqueze wants to merge 1 commit into
firefox-devtools:mainfrom
fqueze:profiler-cli-marker-info-multi-pr

Conversation

@fqueze

@fqueze fqueze commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Main | Deploy preview

Inspecting a sequence of markers meant one invocation per handle. marker info now takes a list of handles, comma-separated handles, and m-1..m-3 ranges in any combination, returning a marker-info-multi result for two or more markers. Any spelling meaning exactly one marker keeps the previous text and JSON output byte for byte.

An unresolvable handle is reported in place with the rest still shown and a non-zero exit; a malformed spec, reversed range, or range wider than 256 handles fails before any lookup.

Ranges expand numerically and handle numbering continues across listings, so a range overrunning its listing resolves into unrelated markers. When one lands in more than one thread the CLI warns and exits non-zero.

Inspecting a sequence of markers meant one invocation per handle. `marker info`
now takes a list of handles, comma-separated handles, and m-1..m-3 ranges in any
combination, returning a marker-info-multi result for two or more markers. Any
spelling meaning exactly one marker keeps the previous text and JSON output byte
for byte.

An unresolvable handle is reported in place with the rest still shown and a
non-zero exit; a malformed spec, reversed range, or range wider than 256 handles
fails before any lookup.

Ranges expand numerically and handle numbering continues across listings, so a
range overrunning its listing resolves into unrelated markers. When one lands in
more than one thread the CLI warns and exits non-zero.
@fqueze
fqueze requested a review from canova August 20, 2026 17:41
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.14815% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.81%. Comparing base (9203f11) to head (91a1cd2).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-query/marker-map.ts 97.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6277      +/-   ##
==========================================
+ Coverage   83.79%   83.81%   +0.02%     
==========================================
  Files         350      350              
  Lines       37583    37637      +54     
  Branches    10459    10470      +11     
==========================================
+ Hits        31492    31546      +54     
  Misses       5664     5664              
  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