Skip to content

Create a non-connected FlameGraph component#6118

Open
mstange wants to merge 1 commit into
firefox-devtools:mainfrom
mstange:push-tyosokszvqzz
Open

Create a non-connected FlameGraph component#6118
mstange wants to merge 1 commit into
firefox-devtools:mainfrom
mstange:push-tyosokszvqzz

Conversation

@mstange

@mstange mstange commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This will let us use flame graphs in other places, for example in the function list panel (for callee / caller views) or in a benchmark comparison view.

ConnectedFlameGraph is the connected version and works as before.

This commit also removes MaybeFlameGraph. The flame graph no longer respects the global "is inverted" flag, so the performance warning in MaybeFlameGraph was never shown. The only other functionality of MaybeFlameGraph was that it displayed "empty reasons" when the preview selection was empty; this part has been subsumed into ConnectedFlameGraph.

This will let us use flame graphs in other places, for example in the
function list panel (for callee / caller views) or in a benchmark
comparison view.

ConnectedFlameGraph is the connected version and works as before.

This commit also removes MaybeFlameGraph. The flame graph no longer respects
the global "is inverted" flag, so the performance warning in MaybeFlameGraph
was never shown. The only other functionality of MaybeFlameGraph was that it
displayed "empty reasons" when the preview selection was empty; this part
has been subsumed into ConnectedFlameGraph.
@mstange mstange requested a review from canova June 23, 2026 15:03
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.30435% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.45%. Comparing base (2cfc425) to head (7363641).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/components/flame-graph/ConnectedFlameGraph.tsx 88.88% 3 Missing ⚠️
src/components/flame-graph/FlameGraph.tsx 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6118      +/-   ##
==========================================
- Coverage   83.45%   83.45%   -0.01%     
==========================================
  Files         341      341              
  Lines       36073    36076       +3     
  Branches    10001    10002       +1     
==========================================
+ Hits        30106    30107       +1     
- Misses       5539     5541       +2     
  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.

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