8000 Explain when mainThreadIndex might be null · firefox-devtools/profiler@fc1a8d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc1a8d3

Browse files
committed
Explain when mainThreadIndex might be null
1 parent a2afd37 commit fc1a8d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/profile-logic/tracks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ function _getDefaultGlobalTrackOrder(
192192

193193
// This is the case where both of the tracks are processes. Let's sort them
194194
// by activity while keeping the parent process at the top.
195+
// mainThreadIndex might be null in case the GeckoMain thread is not
196+
// profiled in a profile.
195197
const activityA =
196198
trackA.mainThreadIndex !== null
197199
? threadActivityScores[trackA.mainThreadIndex]

0 commit comments

Comments
 (0)
0