Closed Bug 1705019 Opened 3 years ago Closed 2 years ago

Make LOG profiler markers always enabled when MOZ_LOG is enabled

Categories

(Core :: Gecko Profiler, task, P3)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: julienw, Assigned: florian)

Details

Attachments

(1 file)

Currently, enabling profiler markers with MOZ_LOG requires that we add profilermarkers in the MOZ_LOG string. This is both cumbersome and badly discoverable, and doesn't interact well with other debugging tools like about:networking.

So in this bug we want to enabled the profiler markers all the time, as long as both MOZ_LOG is enabled and the profiler is running.

Related code is:
https://searchfox.org/mozilla-central/rev/759872688df15a5d6ab305ffe39d90450590bfec/xpcom/base/Logging.cpp#400-401
https://searchfox.org/mozilla-central/rev/759872688df15a5d6ab305ffe39d90450590bfec/xpcom/base/Logging.cpp#599
and other code referencing these variables.

This should be quite straightforward.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → florian
Status: NEW → ASSIGNED
Pushed by fqueze@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/815e56c1a0d0
Always record LogMessage profiler markers for enabled log messages when the profiler is enabled and add a new 'profilerstacks' keyword to enable capturing stacks in these markers, r=mstange.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: