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).
Bug 1945837 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
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 ```