PSA on MOZ_LOG entries in profiles

A short PSA about MOZ_LOG() messages:

In Bug 1518030 back in January, I landed support for mirroring MOZ_LOG()
messages into profiles captured with the Gecko Profiler
(https://profiler.firefox.com/ formerly https://perf-html.io/).

You can now add "profilermarkers" to you MOZ_LOG env variable to cause
log messages to be mirrored as profiler Markers in profiles.

I would suggest being a little careful about enabling excessive number
of log messages when using this, and it does allocate memory for each
marker so the overhead may be more than normal (a bit).  That said, you
can probably throw a lot of logs at it safely.

You can find them in the Marker Chart or Marker Table when viewing a
profile.

Now back to your regularly scheduled programming ;-)

-- 
Randell Jesup, Mozilla Corp
remove "news" for personal email
0
Randell
3/15/2019 1:52:25 PM
mozilla.dev.platform 6504 articles. 0 followers. Post Follow

0 Replies
1 Views

Similar Articles

[PageSpeed] 9

Reply: