Struct dhat::Dhat[][src]

pub struct Dhat { /* fields omitted */ }
Expand description

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

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.

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

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.