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
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to