Closed
Bug 1862556
Opened 2 years ago
Closed 2 years ago
Add the ability to create LongTask profiler markers for any thread
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
122 Branch
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: jesup, Assigned: jesup)
References
Details
Attachments
(1 file)
It's frequently useful to be able to see if any events on thread are taking an inordinate amount of time. Right now we have LongTask markers on MainThread (and jank markers), but LongTask markers are only for >50ms and only for MainThread.
The design I came up with uses the existing option structure to NS_NewNamedThread() to turn on LongTask markers, and to set how long is 'long'.
For non-mainthread, since many use customized event loops like SocketThread's calls to Poll, I stop the NestedEventLoop code from inserting markers.
| Assignee | ||
Comment 1•2 years ago
|
||
Pushed by rjesup@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2573ea9f377b
Allow LongTask markers to be generated for any nsThread r=nika
Comment 3•2 years ago
|
||
Backed out for causing build bustages in nsThreadManager.cpp
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:313:75: error: no matching function for call to 'nsThread::nsThread(mozilla::NotNull<RefPtr<mozilla::ThreadEventQueue> >, nsThread::MainThreadFlag, <brace-enclosed initializer list>)'
Flags: needinfo?(rjesup)
Pushed by rjesup@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6e65eec5eb5e
Allow LongTask markers to be generated for any nsThread r=nika
Comment 5•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox122:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
| Assignee | ||
Updated•2 years ago
|
Flags: needinfo?(rjesup)
You need to log in
before you can comment on or make changes to this bug.
Description
•