Struct dhat::Profiler [−][src]
pub struct Profiler;Expand description
A type whose lifetime dictates the start and end of profiling.
Profiling starts when the first value of this type is created. Profiling
stops when (a) this value is dropped or (b) a dhat assertion fails,
whichever comes first. When that happens, profiling data may be written to
file, depending on how the Profiler has been configured. Only one
Profiler can be running at any point in time.