[][src]Struct coarse_prof::Profiler

pub struct Profiler { /* fields omitted */ }

A Profiler stores the scope tree and keeps track of the currently active scope.

Note that there is a global thread-local instance of Profiler in PROFILER, so it is not possible to manually create an instance of Profiler.

Methods

impl Profiler[src]

pub fn enter(&mut self, name: &'static str) -> Guard[src]

Enter a scope. Returns a Guard that should be dropped upon leaving the scope.

Usually, this method will be called by the profile macro, so it does not need to be used directly.

Auto Trait Implementations

impl !Send for Profiler

impl !Sync for Profiler

impl Unpin for Profiler

impl !UnwindSafe for Profiler

impl !RefUnwindSafe for Profiler

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]