Open
Bug 1945837
Opened 23 days ago
Updated 16 days ago
Create directories specified in MOZ_PROFILER_SHUTDOWN path if they don't exist
Categories
(Core :: Gecko Profiler, enhancement, P3)
Core
Gecko Profiler
Tracking
()
NEW
People
(Reporter: sparky, Unassigned)
References
Details
(Whiteboard: [fxp])
Currently, when MOZ_PROFILER_SHUTDOWN
is set to a path that includes directories which don't exist, the profiler fails because of the non-existent directories. It would be useful if the profiler could create those directories. This would make it easier to handle the profile paths in our test harnesses (potentially save us from duplicating code too).
In mochitest, when we're profiling, and the directory doesn't exist we see this error and then the browser hangs:
0:04.58 INFO TEST-START | Shutdown
0:04.58 INFO Browser Chrome Test Summary
0:04.58 INFO Passed: 0
0:04.58 INFO Failed: 1
0:04.58 INFO Todo: 0
0:04.58 INFO Mode: e10s
0:04.58 INFO *** End BrowserChrome Test Results ***
0:04.82 GECKO(1563496) JavaScript error: , line 0: NS_ERROR_FILE_UNRECOGNIZED_PATH
Reporter | ||
Updated•23 days ago
|
Summary: Create directories in MOZ_PROFILER_SHUTDOWN path if they don't exist → Create directories specified in MOZ_PROFILER_SHUTDOWN path if they don't exist
We can do it right before generating the stream here: https://searchfox.org/mozilla-central/rev/7c573d9eb97e7b1ba383239bfac9260b26983544/tools/profiler/core/platform.cpp#6424-6425
Severity: -- → N/A
Priority: -- → P3
Whiteboard: [fxp]
Updated•16 days ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•