[−][src]Struct sandboxfs::ScopedProfiler
Facade for cpuprofiler::PROFILER
to cope with the optional gperftools dependency and to
ensure profiling stops on drop
.
Methods
impl ScopedProfiler
[src]
pub fn start<P: AsRef<Path>>(path: P) -> Fallible<ScopedProfiler>
[src]
Starts the CPU profiler and stores the profile in the given path
.
This will fail if sandboxfs was built without the "profiler" feature. This may fail if there are problems initializing the profiler.
Note that, due to the nature of profiling, there can only be one ScopedPointer
active at
any given time. Trying to create two instances of this will cause this method to block
until the other object is dropped.
Trait Implementations
impl Drop for ScopedProfiler
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScopedProfiler
impl Send for ScopedProfiler
impl Sync for ScopedProfiler
impl Unpin for ScopedProfiler
impl UnwindSafe for ScopedProfiler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,