Skip to content

Show markers that are in the committed range only in profiler-cli thread markers - #6222

Merged
canova merged 2 commits into
firefox-devtools:mainfrom
canova:cli-marker-range
Jul 28, 2026
Merged

Show markers that are in the committed range only in profiler-cli thread markers#6222
canova merged 2 commits into
firefox-devtools:mainfrom
canova:cli-marker-range

Conversation

@canova

@canova canova commented Jul 27, 2026

Copy link
Copy Markdown
Member

Main | Deploy preview

This fixes #6221 .

It looks like we forgot to filter the markers by the range. It was only working when the --search filter was passed due to the selector that was used for that case. Now it should work for every case.

I also updated the text output a bit to make sure that it's understandable that this is only a subset of full range thread markers.

For example:

$ pq thread markers
[Thread: t-95 (GeckoMain) | View: ts-e→ts-E (346.39ms) | Full: 2m28s]

Markers in thread t-95 (https://google.com (5/5)) — 1237 markers in view (of 11715 in the full range)
Legend: ✓ = has stack trace, ✗ = no stack trace

By Name (top 15):
  ...

See 1237 markers in view (of 11715 in the full range).

@canova
canova requested review from fatadel and mstange July 27, 2026 17:53
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.63%. Comparing base (812a4bd) to head (6d734d2).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6222      +/-   ##
==========================================
+ Coverage   83.62%   83.63%   +0.01%     
==========================================
  Files         346      346              
  Lines       37145    37153       +8     
  Branches    10311    10315       +4     
==========================================
+ Hits        31061    31073      +12     
+ Misses       5656     5652       -4     
  Partials      428      428              

☔ 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.

canova added 2 commits July 28, 2026 12:16
The default 'thread markers' read `getFullMarkerListIndexes`, which
ignores the committed range, so zooming had no effect unless --search
was also passed. Switch the default paths to
`getCommittedRangeFilteredMarkerIndexes` so both branches respect the
current zoom consistently.
When zoomed into a committed range, the marker count line now reads
'N markers in view (of M in the full range)', mirroring the 'of view / of full'
percentages that 'thread samples' already shows. The baseline is this thread's
marker count over the full time range (ignoring zoom), exposed as a new optional
fullRangeMarkerCount field set only when zoomed.
@canova
canova force-pushed the cli-marker-range branch from f085fd6 to 6d734d2 Compare July 28, 2026 10:17
@canova
canova merged commit 2040ae1 into firefox-devtools:main Jul 28, 2026
21 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.

profiler-cli thread markers should show only the markers that are inside the committed range.

2 participants