Open Bug 1321607 Opened 8 years ago Updated 2 years ago

Expose the list of all threads which are available for profiling through nsIProfiler

Categories

(Core :: Gecko Profiler, task, P2)

task

Tracking

()

Tracking Status
firefox53 --- affected

People

(Reporter: mstange, Unassigned)

References

(Blocks 1 open bug)

Details

      No description provided.
GetAvailableThreads
Blocks: 1329108
Note to Markus: I don't see any `GetAvailableThreads` in the gecko codebase at the moment.

Is [1] the right data ?

[1] https://searchfox.org/mozilla-central/rev/bab833ebeef6b2202e71f81d225b968283521fd6/js/src/vm/HelperThreads.h#102
Summary: Expose the list of profileable threads through nsIProfiler → Expose the list of all threads which are available for profiling through nsIProfiler

Oh, wow, let me supply some context:

The profiler currently has a list of registered threads, in CorePS::RegisteredThreads. It could easily expose that list via a new nsIProfiler method, for example nsIProfiler.getAvailableThreads.

Severity: normal → N/A
Type: defect → task
Priority: -- → P2
See Also: → 1639791

This might be useful for about:processes to show an icon next to threads that are not registered.

And I was thinking about the reverse as well: about:profiling could also list the threads that are not registered, to both help Firefox devs to find more thread to register, and for users to know which threads may not (yet) appear in profiles.

You need to log in before you can comment on or make changes to this bug.