Open
Bug 1724255
Opened 3 years ago
Updated 3 years ago
Add a method in ChromeUtils to capture a profiler stack for use in a future marker
Categories
(Core :: Gecko Profiler, enhancement, P2)
Core
Gecko Profiler
Tracking
()
NEW
People
(Reporter: florian, Unassigned)
Details
C++ code can do variable = profiler_capture_backtrace()
followed by MarkerStack::TakeBacktrace(std::move(variable))
later. It would be really nice to be able to do something similar from JS code.
I think the API would look like:
variable = ChromeUtils.captureBackTrace()
followed by ChromeUtils.addProfilerMarker(name, {stack: variable})
.
The current {captureStack: true}
could be changed to {stack: "capture"}
.
As Mike pointed out at https://phabricator.services.mozilla.com/D121887#3963071 having such an API would have been really nice for the DeferredTask markers.
Severity: -- → N/A
Priority: -- → P2
You need to log in
before you can comment on or make changes to this bug.
Description
•