Handle race condition for directory creation.
Add doc
In the memory profiler, use the shortly cut for the strides.