Bug 1914334 - Use options.symbolsPath in shutdown profile symbolication, instead of constructing a path from the firefox objdir

Differential Revision: https://phabricator.services.mozilla.com/D225079
This commit is contained in:
Adam Brouwers-Harries 2024-10-11 17:06:04 +00:00
parent 14270f1c99
commit 6f9c6e1b97

View File

@ -3590,14 +3590,7 @@ toolbar#nav-bar {
# Only do the extra work of symbolicating and viewing the profile if
# officially requested through a command line flag. The MOZ_PROFILER_*
# flags can be set by a user.
# We don't have access to the actual symbols path, just the objdir path,
# so do some path work to turn it into an actual symbols path.
firefox_symbol_path = os.path.join(
options.topobjdir, "dist", "crashreporter-symbols"
)
if not os.path.isdir(firefox_symbol_path):
os.mkdir(firefox_symbol_path)
symbolicate_profile_json(profile_path, firefox_symbol_path)
symbolicate_profile_json(profile_path, options.symbolsPath)
view_gecko_profile_from_mochitest(
profile_path, options, profiler_logger
)