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)

enhancement

Tracking

()

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
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
See Also: → 1944913
You need to log in before you can comment on or make changes to this bug.