[][src]Function persil::init

pub fn init(name: impl AsRef<str>)

Initializes the global profiler with the given application name.

The trace results will be stored in the ./trace folder and all files will have name-<pid> as their prefix.

Panics

Panics if the profiler is already initialized.