Skip to content

Show allocation data in the cli - #6246

Open
fatadel wants to merge 1 commit into
firefox-devtools:mainfrom
fatadel:issue-6183
Open

Show allocation data in the cli#6246
fatadel wants to merge 1 commit into
firefox-devtools:mainfrom
fatadel:issue-6183

Conversation

@fatadel

@fatadel fatadel commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Main | Deploy preview

The samples and functions commands only summarized sample timing, so JS and native allocation data was invisible from the cli.

Add --strategy to the samples, functions and annotate commands to pick a data source per invocation, and "thread strategy" to set it for the session. Allocation sources weigh the call tree in bytes, and "thread info" lists the sources each thread has.

Closes #6183


Profiles to explore:

Normal · JS Allocations · Native Allocations

The samples and functions commands only summarized sample timing, so JS
and native allocation data was invisible from the cli.

Add --strategy to the samples, functions and annotate commands to pick a
data source per invocation, and "thread strategy" to set it for the
session. Allocation sources weigh the call tree in bytes, and "thread
info" lists the sources each thread has.

Closes firefox-devtools#6183
@fatadel
fatadel requested review from canova and mstange August 6, 2026 15:31
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 55.07246% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.65%. Comparing base (a62903b) to head (e6cbf45).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-query/index.ts 32.25% 21 Missing ⚠️
src/profile-query/call-tree-strategy.ts 79.31% 6 Missing ⚠️
src/profile-query/formatters/thread-info.ts 0.00% 3 Missing ⚠️
src/profile-query/function-annotate.ts 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6246      +/-   ##
==========================================
- Coverage   83.69%   83.65%   -0.05%     
==========================================
  Files         348      349       +1     
  Lines       37433    37485      +52     
  Branches    10514    10531      +17     
==========================================
+ Hits        31330    31358      +28     
- Misses       5676     5700      +24     
  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.

Add the ability to see other "Call tree summary strategies" in the cli (aka support seeing allocation data)

1 participant