profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Revisit how we select the thread at first load

Open julienw opened this issue 4 years ago • 1 comments

Currently we try to select the first non-hidden GeckoMain thread for a content process. Historically this was because we were targeting more web developers, and this was hitting more interesting processes for this use case. But now the preset "web developer" is more suited for this use case, and we should probably select the first visible track, as this is less surprising.

Here is an example: https://profiler.firefox.com/public/dd9tc1rk38edcdt77xjvca7dxq0jdtz7gpmp6fr/calltree/

This happens in src/profile-logic/tracks.js (look for initializeSelectedThreadIndex).

┆Issue is synchronized with this Jira Task

julienw avatar Jun 16 '21 16:06 julienw

I need help

trizist avatar Feb 06 '25 13:02 trizist

We have made significant improvements to this since this issue. Namely:

  • We changed the order of tracks to use the activity score.
  • Changed the default visible threads to use the activity score.
  • Select the default thread by picking the most active non-parent process track.

Considering all these, I think this issue is outdated and we can close it.

canova avatar Jul 29 '25 11:07 canova