[−][src]Function persil::try_init
pub fn try_init(name: impl AsRef<str>) -> Result<(), ()>
Tries to initialize global profiler with the given name.
The trace results will be stored in the ./trace folder
and all files will have name-<pid> as their prefix.
Return
Returns Ok if the profiler was successfully initialized
and Err if the profiler is already initialized.