Allow seeing different assembly code for the same function#5349
Merged
mstange merged 2 commits intofirefox-devtools:mainfrom Jan 23, 2026
Merged
Allow seeing different assembly code for the same function#5349mstange merged 2 commits intofirefox-devtools:mainfrom
mstange merged 2 commits intofirefox-devtools:mainfrom
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
mstange
added a commit
that referenced
this pull request
Jan 19, 2026
A small behavior-neutral change that I've extracted from #5349.
mstange
added a commit
that referenced
this pull request
Jan 19, 2026
…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
Contributor
Author
|
This is now ready for review. |
flodolo
approved these changes
Jan 23, 2026
canova
reviewed
Jan 23, 2026
Member
canova
left a comment
There was a problem hiding this comment.
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}` : ''} |
Member
There was a problem hiding this comment.
Can we also make the x of y string localizable?
Contributor
Author
There was a problem hiding this comment.
Oh right! Added a commit for that.
| return ( | ||
| <> | ||
| <h3 className="bottom-box-title-trailer"> | ||
| {index !== null && count > 1 ? `${index + 1} of ${count}` : ''} |
Member
There was a problem hiding this comment.
Also, index !== null shouldn't be reachable now thanks to the early return above. We can remove it.
flodolo
requested changes
Jan 23, 2026
1a8f46a to
4a535bc
Compare
4a535bc to
65dfc52
Compare
flodolo
approved these changes
Jan 23, 2026
65dfc52 to
c3eaddf
Compare
canova
added a commit
that referenced
this pull request
Jan 27, 2026
Lots of exciting changes 🎉: [arai-a] Put radio buttons into labels (#5738) [DaniPopes] Update comment for "unique-string" (#5741) [Karan Pradhan] Hide tooltip filter button in non-sticky tooltips and add hideFilterButton tests (#5718) [arai-a] Add a menu to copy the Marker Table as text (#5732) [arai-a] Make the entire list item clickable for the "Full Range" (#5742) [Markus Stange] Move symbol table demangling out of SymbolStore into SymbolProvider (#5746) [Markus Stange] Remove SVG asset imports from profile-data.ts (#5747) [arai-a] Do not apply sticky tooltip on double click (#5754) [arai-a] Skip the ChartCanvas redraw on the Viewport's internal default state usage (#5744) [Markus Stange] Stop blindly extracting uint8array.buffer after calling compress() (#5753) [Markus Stange] In the assembly view state, refer to the current symbol by index (#5755) [Markus Stange] Fix "scroll to hotspot" functionality in the source view + assembly view (#5759) [Markus Stange] Keep the colorField markerSchema field when processing profiles in the gecko format (#5760) [Markus Stange] Implement dark mode (#5740) [Markus Stange] Fix light-mode colors (#5765) [Markus Stange] Tweak dark mode colours. (#5767) [Nazım Can Altınova] Enable some basic type-aware lints (#5775) [Markus Stange] Allow seeing different assembly code for the same function (#5349) [fatadel] Refine tree view a11y (#5779) [fatadel] Align double-click behavior of stack chart with flame graph (#5782) [Markus Stange] Split gz.ts properly into node and browser variants (#5764) [Markus Stange] Simplify and optimize the computation of per-call-node line and address timings (#5770) [Nazım Can Altınova] Move the dark mode toggle to devtools console (#5783) [Nazım Can Altınova] 🔃 Sync: l10n -> main (Jan 27, 2026) (#5785) [Nazım Can Altınova] Improve Chrome importer marker payload logic (#5717) [Markus Stange] Add a Focus Self transform (#5774) [Nazım Can Altınova] Enable the Turkish locale in production (#5786) And huge thanks to our localizers 🎉 : be: Mikalai Udodau de: Ger de: Michael Köhler el: Jim Spentzos en-CA: chutten en-CA: Saurabh en-GB: Ian Neal en-GB: Saurabh es-CL: ravmn fy-NL, nl: Fjoerfoks fr: Skywarp fr: Théo Chevalier fur: Fabio Tomat fy-NL: Fjoerfoks ia: Melo46 it: Francesco Lodolo [:flod] nl: Fjoerfoks nl: Mark Heijl pt-BR: Marcelo Ghelman ru: berry ru: Valery Ledovskoy sv-SE: Andreas Pettersson tr: Grk zh-CN: Olvcpr423 zh-CN: wxie zh-TW: Pin-guang Chen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.