Skip to content

Conversation

@mstange
Copy link
Contributor

@mstange mstange commented Jan 14, 2026

Production | Deploy preview

Fixes #5758 and cleans things up a bit.

Having the samples passed to getBottomBoxInfoForCallNode will also make it easier to address the TODO about picking the native symbol with the highest sample count, but I'll do that in a separate PR (or probably as part of #5349).

@mstange mstange requested a review from canova January 14, 2026 21:08
@mstange mstange self-assigned this Jan 14, 2026
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 73.73737% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.70%. Comparing base (0dd124f) to head (3fdb075).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-logic/bottom-box.ts 55.55% 16 Missing ⚠️
src/components/shared/AssemblyView-codemirror.tsx 50.00% 6 Missing ⚠️
src/components/shared/AssemblyView.tsx 66.66% 3 Missing ⚠️
src/components/shared/SourceView.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5759      +/-   ##
==========================================
+ Coverage   85.67%   85.70%   +0.02%     
==========================================
  Files         315      316       +1     
  Lines       31110    31136      +26     
  Branches     8472     8484      +12     
==========================================
+ Hits        26654    26684      +30     
+ Misses       4026     4022       -4     
  Partials      430      430              

☔ View full report in Codecov by Sentry.
📢 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.

mstange and others added 8 commits January 15, 2026 10:02
I want to add a call to a function from line-timings.ts but line-timings.ts
already depends on profile-data.ts, and I can't create a circular dependency
between profile-data.ts and line-timings.ts.
This means we can compute the right line number for the "hot spot" for the
call node that was passed to getBottomBoxInfoForCallNode, and not just for
the selected call node.

For example, getBottomBoxInfoForCallNode can be called with the right-clicked
call node which can be different from the selected call node, and we were
scrolling to the wrong spot in that case before this patch.

Fixes firefox-devtools#5758.
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.

Opening the source view from the context menu sometimes scrolls to the wrong line number

1 participant