Skip to content

profiler-cli: add profile markers for cross-thread marker search - #6276

Open
fqueze wants to merge 1 commit into
firefox-devtools:mainfrom
fqueze:profiler-cli-profile-markers-pr
Open

profiler-cli: add profile markers for cross-thread marker search#6276
fqueze wants to merge 1 commit into
firefox-devtools:mainfrom
fqueze:profiler-cli-profile-markers-pr

Conversation

@fqueze

@fqueze fqueze commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Main | Deploy preview

thread markers searches one thread, so finding which of 95 threads saw a marker meant a shell loop of one invocation per thread. profile markers searches every thread in one call and reports matches with a thread column, following the shape of profile logs.

The command requires at least one filter: unfiltered it would print an arbitrary slice of 2.4M markers, which answers no question. An explicit --limit opts into browsing anyway.

Like thread markers --list, a filtered query returns every match rather than a truncated default, so a search never silently hides hits. Rows are capped at 100000, the most the reply can carry; the per-thread counts stay exact.

thread markers searches one thread, so finding which of 95 threads saw a marker
meant a shell loop of one invocation per thread. profile markers searches every
thread in one call and reports matches with a thread column, following the shape
of profile logs.

The command requires at least one filter: unfiltered it would print an arbitrary
slice of 2.4M markers, which answers no question. An explicit --limit opts into
browsing anyway.

Like thread markers --list, a filtered query returns every match rather than a
truncated default, so a search never silently hides hits. Rows are capped at
100000, the most the reply can carry; the per-thread counts stay exact.
@fqueze
fqueze requested a review from canova August 20, 2026 17:18
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Patch % Lines
src/profile-query/formatters/marker-info.ts 96.00% 3 Missing ⚠️
src/profile-query/index.ts 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6276      +/-   ##
==========================================
+ Coverage   83.79%   83.82%   +0.02%     
==========================================
  Files         350      350              
  Lines       37583    37662      +79     
  Branches    10459    10493      +34     
==========================================
+ Hits        31492    31569      +77     
- 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