Discover & profile JVM threads created during profiling session
Categories
(Core :: Gecko Profiler, enhancement, P3)
Tracking
()
People
(Reporter: mcomella, Assigned: mleclair)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
In the initial implementation of multi-thread support for JVM threads (bug 1618560), we fetch all the matching threads on profiler start and profile those: i.e. we won't profile a thread if it was started during the profiling session.
This bug is to implement this functionality: to actively discover threads during profiling and, if they match our filters, profile them too.
| Reporter | ||
Comment 1•4 years ago
|
||
Note: the reason we didn't already implement this is because we're concerned that ThreadGroup.enumerate takes too long to run on every sample (especially at times like 1ms).
(In reply to Michael Comella (:mcomella) [needinfo or I won't see it] from comment #1)
Note: the reason we didn't already implement this is because we're concerned that
ThreadGroup.enumeratetakes too long to run on every sample (especially at times like 1ms).
In case it helps: It's a similar problem with discovering native threads, especially on Windows (it takes multiple milliseconds). So we run the discovery on a separate thread, and run it less frequently than the sampling interval, to keep its overhead small. Of course that means we can miss the beginning of a thread.
| Assignee | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 4•11 months ago
|
||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•2 months ago
|
Description
•