-
Notifications
You must be signed in to change notification settings - Fork 453
Allow seeing different assembly code for the same function #5349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow seeing different assembly code for the same function #5349
Conversation
49d95a4 to
139d000
Compare
139d000 to
74b06df
Compare
74b06df to
39b83d2
Compare
39b83d2 to
7ea21d4
Compare
7ea21d4 to
4112ac4
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5349 +/- ##
==========================================
+ Coverage 85.71% 85.75% +0.04%
==========================================
Files 317 318 +1
Lines 31216 31240 +24
Branches 8499 8600 +101
==========================================
+ Hits 26756 26790 +34
+ Misses 4030 4020 -10
Partials 430 430 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f88be1c to
8ecd06e
Compare
A small behavior-neutral change that I've extracted from #5349.
…iew (#5759) [Production](https://share.firefox.dev/4qXrKoY) | [Deploy preview](https://deploy-preview-5759--perf-html.netlify.app/public/f2eatktw200exzsbzps5xg0gpjkb785cjj1yz8r/calltree/?globalTrackOrder=a0978465312&hiddenGlobalTracks=0w8a&hiddenLocalTracksByPid=46164-0w3~46165-0~46175-0~46171-0~46589-0~46180-0~46588-0~46174-0~46168-01~46177-0&range=m29020&thread=e&transforms=ff-1037~ff-1046&v=12) 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).
8ecd06e to
1a8f46a
Compare
|
This is now ready for review. |
canova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks good to me, but can we also make the x of y text in the UI localizable?
| return ( | ||
| <> | ||
| <h3 className="bottom-box-title-trailer"> | ||
| {index !== null && count > 1 ? `${index + 1} of ${count}` : ''} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also make the x of y string localizable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right! Added a commit for that.
| return ( | ||
| <> | ||
| <h3 className="bottom-box-title-trailer"> | ||
| {index !== null && count > 1 ? `${index + 1} of ${count}` : ''} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, index !== null shouldn't be reachable now thanks to the early return above. We can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nazım is correct, we shouldn't have hardcoded English text.
1a8f46a to
4a535bc
Compare
4a535bc to
65dfc52
Compare
canova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
65dfc52 to
c3eaddf
Compare
Production | Deploy preview - Double-click the first row in the call tree and then click the
asmbuttonIf a JS function is JIT compiled multiple times, then it's currently impossible to see the assembly code for each compilation. If you double-click the call node for the function, the assembly view shows an arbitrary compilation. It doesn't even try to find the one with the highest sample count. The same is true for functions that were inlined into multiple different functions.
This PR allows navigating between the different compilations.
I'll make a separate PR to pick the native symbol with the highest sample count.