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
.