Closed Bug 1724187 Opened 3 years ago Closed 3 years ago

Marker stacks captured with ChromeUtils.addProfilerMarker(name, {captureStack: true}) should not show the addProfilerMarker function

Categories

(Core :: Gecko Profiler, task, P3)

task

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(2 files)

In bug 1674476 I added support for capturing a profiler stack to go with a marker added with ChromeUtils.addProfilerMarker. Currently these stacks start with a few frames in the DOM category, because the webidl binding code adds a label frame of the DOM category when calling the ChromeUtils method.

We could make the profiler ignore these frames by changing the label's category to PROFILER.

Example profile with the patch: https://share.firefox.dev/3yqiOxm
Similar profile without the patch: https://share.firefox.dev/3fBgTi2

Severity: -- → N/A
Priority: -- → P3
See Also: → 1636246
Pushed by fqueze@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a33b980dc978
Change the category of the ChromeUtils.addProfilerMarker label frame to PROFILER so that this code is ignored in stacks captured for profiler markers, r=gerald.
https://hg.mozilla.org/integration/autoland/rev/dc51620c74e7
Make the test_addProfilerMarker.js test check the content of marker stacks, r=julienw
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: