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
( formerly

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

Now back to your regularly scheduled programming ;-)

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

0 Replies

Similar Articles

[PageSpeed] 6