Skip to content

Conversation

@mstange
Copy link
Contributor

@mstange mstange commented Jan 22, 2026

This PR makes it so that we don't allocate lots of one-element sets just to compute which line number to scroll to, when a call node is double-clicked.

@mstange mstange requested a review from canova January 22, 2026 02:38
@mstange mstange self-assigned this Jan 22, 2026
We only use the total hits anyway, to compute which line to scroll to.
@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 96.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.65%. Comparing base (06b0dc2) to head (6ba8c8c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-logic/address-timings.ts 90.00% 2 Missing ⚠️
src/profile-logic/line-timings.ts 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5770      +/-   ##
==========================================
- Coverage   85.71%   85.65%   -0.06%     
==========================================
  Files         317      317              
  Lines       31216    31164      -52     
  Branches     8595     8584      -11     
==========================================
- Hits        26756    26695      -61     
- Misses       4030     4039       +9     
  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 mstange force-pushed the better-call-node-line-and-address-timings branch from b753a70 to 6a0b464 Compare January 22, 2026 02:39
I didn't add any tests for the new function; I think it is sufficiently
covered by the existing tests for getNativeSymbolsForCallNode.
And the next commit will make the address / line timings code use it,
which will contribute some more test coverage.
@mstange mstange force-pushed the better-call-node-line-and-address-timings branch from 6a0b464 to 5eaa05f Compare January 22, 2026 02:41
…timings / address timings with the help of getCallNodeFramePerStack.
@mstange mstange force-pushed the better-call-node-line-and-address-timings branch from 5eaa05f to 6ba8c8c Compare January 22, 2026 03:17
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