Closed Bug 1657197 Opened 5 years ago Closed 3 years ago

Support enabling MOZ_LOG profilermarkers mirroring at runtime

Categories

(Core :: XPCOM, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: mstange, Assigned: padenot)

References

Details

Attachments

(1 file)

Bug 1518030 added support for a profilermarkers log module which causes all log messages to be pushed into profiler markers. For example, you can start Firefox with MOZ_LOG=profilermarkers,nsHttp:3, and capture a profile during a page load, and you'll get a profile like this: https://share.firefox.dev/30tmksw

However, profilermarkers only works in the MOZ_LOG environment variable; it cannot be enabled at runtime in about:networking#logging.

It would be useful for this to work at runtime, too.

To make this work at runtime, I think the following changes are needed:

  1. A logging.config.profilermarkers pref would need to be added, and handled similarly to logging.config.add_timestamp
  2. about:networking would need to be taught about this module, here and here.
Severity: -- → N/A
Priority: -- → P3

I need this, taking.

Assignee: nobody → padenot
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7a2d9c71436 Support enabling MOZ_LOG profilermarkers mirroring at runtime. r=mstange
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: