Registering a rust thread with the profiler should be easy
Categories
(Core :: Gecko Profiler, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: florian, Assigned: canova)
References
(Blocks 3 open bugs)
Details
Attachments
(5 files)
Or even better, not registering a rust thread with the profiler should be difficult.
Currently we have code doing things like:
https://searchfox.org/mozilla-central/rev/927e525f481a93a8f63d27a78ae6201e42b1b1fb/gfx/layers/wr/WebRenderBridgeParent.cpp#149-153
void gecko_profiler_register_thread(const char* name) {
PROFILER_REGISTER_THREAD(name);
}
void gecko_profiler_unregister_thread() { PROFILER_UNREGISTER_THREAD(); }
extern "C" {
fn gecko_profiler_register_thread(name: *const ::std::os::raw::c_char);
fn gecko_profiler_unregister_thread();
fn wr_register_thread_local_arena();
}
Reporter | ||
Comment 1•4 years ago
|
||
Here's another example of how it's currently being done: https://searchfox.org/mozilla-central/rev/927e525f481a93a8f63d27a78ae6201e42b1b1fb/dom/media/CubebUtils.cpp#498-500
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D116513
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D116514
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D116515
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D116516
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 8•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/102b7e2e1d23
https://hg.mozilla.org/mozilla-central/rev/17ab690c9058
https://hg.mozilla.org/mozilla-central/rev/bf15631f6360
https://hg.mozilla.org/mozilla-central/rev/398fcf75e15b
https://hg.mozilla.org/mozilla-central/rev/66b6bf9d6c51
Description
•