Closed Bug 1598531 Opened 5 years ago Closed 5 years ago

Base Profiler logging is not synchronized with MOZ_LOG

Categories

(Core :: Gecko Profiler, task, P3)

72 Branch
task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

Details

Attachments

(1 file)

Base Profiler's LOG macros use simple printf (to stdout) to output their messages.
On top of potentially losing messages if the application crashes, messages may be printed later than those from MOZ_LOG.
We should fprintf to stderr instead.

This is especially useful when debugging both Base Profiler and Gecko Profiler,
so that their messages are correctly sequenced.

Depends on D54446

Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/407ccb5f316b
Output Base Profiler logging to stderr, so it is correctly sync'd with MOZ_LOG - r=gregtatum
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ad4df3796e18
Output Base Profiler logging to stderr, so it is correctly sync'd with MOZ_LOG - r=gregtatum
Flags: needinfo?(gsquelart)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: