Closed Bug 1528857 Opened 6 years ago Closed 6 years ago

Add env option MOZ_PROFILER_SYMBOLICATE to pre-symbolicate at runtime

Categories

(Core :: Gecko Profiler, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(1 file)

In some situations it would be useful to just get a pre-symbolicated profile output, for quick testing.

Hopefully this will become moot when we can symbolicate after the fact, but in the meantime I think it will be a small but useful feature. (Especially for selfish me, who wants to see some quick results while working on the non-libxul profiler!)

Note that this will be an option set in an environment variable, so it won't impact "normal" users -- apart from an initial check of that env-var.

As per the help message, this can create significant pauses and prevents
future (better) symbolication, but it can be useful to developers for local
tests.

Also note that this is using mozilla/StackWalk.cpp's MozDescribeCodeAddress(), which doesn't seem to be able to symbolicate Firefox on Linux, so don't expect miracles! It works fine on Windows though.

Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6922ddba6039 Setting env-var "MOZ_PROFILER_SYMBOLICATE" forces pre-symbolication of output profiles - r=mstange
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: