[][src]Struct dhat::Dhat

pub struct Dhat { /* fields omitted */ }

A type whose scope dictates the start and end of profiling.

When the first value of this type is dropped, profiling data is written to file. Only one value of this type should be created; if subsequent values of this type are created they will have no effect.

Implementations

impl Dhat[src]

pub fn start_heap_profiling() -> Self[src]

Initiate allocation profiling. This should be the first thing in main, and its result should be assigned to a variable whose scope ends at the end of main.

pub fn start_ad_hoc_profiling() -> Self[src]

Initiate ad hoc profiling. This should be the first thing in main, and its result should be assigned to a variable whose scope ends at the end of main.

Trait Implementations

impl Debug for Dhat[src]

impl Drop for Dhat[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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 = Infallible

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.