Skip to content

Don't pass the preview filtered thread to getTimingsForPath/CallNodeIndex.#5329

Merged
julienw merged 2 commits into
firefox-devtools:mainfrom
mstange:push-zpqlwyrvrrzp
Jan 17, 2025
Merged

Don't pass the preview filtered thread to getTimingsForPath/CallNodeIndex.#5329
julienw merged 2 commits into
firefox-devtools:mainfrom
mstange:push-zpqlwyrvrrzp

Conversation

@mstange

@mstange mstange commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

It was only using it for the stringTable, and only looking up string indexes found on the unfiltered thread, so it might as well use the unfiltered thread's stringTable.

It's getting the filtered samples through a separate argument.

I wrote this patch yesterday, and today @julienw pointed out the same thing in #5328. :)

…ndex.

It was only using it for the stringTable, and only looking up string indexes
found on the unfiltered thread, so it might as well use the unfiltered thread's
stringTable.

It's getting the filtered samples through a separate argument.
@mstange mstange requested a review from julienw January 17, 2025 14:55
@codecov

codecov Bot commented Jan 17, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.08%. Comparing base (503d2eb) to head (46e6cbb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5329      +/-   ##
==========================================
- Coverage   86.08%   86.08%   -0.01%     
==========================================
  Files         311      311              
  Lines       29678    29677       -1     
  Branches     8190     8190              
==========================================
- Hits        25548    25547       -1     
  Misses       3548     3548              
  Partials      582      582              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@julienw julienw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the cleanup!

@julienw julienw enabled auto-merge (squash) January 17, 2025 15:22
@julienw julienw merged commit a766b74 into firefox-devtools:main Jan 17, 2025
@canova canova mentioned this pull request Jan 30, 2025
canova added a commit that referenced this pull request Jan 30, 2025
Updates:

[Julien Wajsberg] Some more small refactorings (#5320)
[Markus Stange] Pass the correct sample index offset to
getTimingsForCallNodeIndex for the flame graph tooltip. (#5328)
[Nisarg Jhaveri] Update docs to include Android Studio/Simpleperf trace
file support (#5309)
[Markus Stange] Don't pass the preview filtered thread to
getTimingsForPath/CallNodeIndex. (#5329)
[Nazım Can Altınova] Add a "Sample timestamp" field to the sample
tooltip in timeline (#5322)
[Markus Stange] Reduce confusion between call tree summary strategy
aware samples and regular samples (#5330)
[Markus Stange] Rename this getCounter selector to getCounters. (#5337)
[Markus Stange] Make sample indexes compatible between the unfiltered
and (preview) filtered call tree summary strategy samples when using an
allocation strat>
[Markus Stange] Remove some code that uses the preview filtered thread
(#5336)
[Markus Stange] Remove getMarkerSchemaName special cases - look up
marker schemas from data.type and nothing else (#5293)
[Markus Stange] Remove the makeProfileSerializable step - make the raw
in-memory profile match the format that's stored in the file (#5287)
[Nicolas Chevobbe] Adapt FilterNavigatorBar to High Contrast Mode.
(#5257)
[Nicolas Chevobbe] Adapt Tracks to High Contrast Mode. (#5252)
[Markus Stange] Adjust string index fields in markers when merging
threads (#5344)
[Theodoros Nikolaou] Localize title and aria label in ProfileName
(#5345)
[Julien Wajsberg] Adapt time-slice selection in High Contrast Mode.
(#5259)
[Markus Stange] Make stackTable (sub)category derived data (#5342)
[Markus Stange] Compute cpuRatio values when computing the derived
thread (#5288)
[Nazım Can Altınova] Add a context menu item to open the JS scripts in
DevTools debugger (#5295)

Also thanks to our localizers:

el: Jim Spentzos
fr: Théo Chevalier
it: Francesco Lodolo [:flod]
zh-TW: Pin-guang Chen
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.

2 participants