[−][src]Struct dhat::Dhat
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
Auto Trait Implementations
impl RefUnwindSafe for Dhat
[src]
impl Send for Dhat
[src]
impl Sync for Dhat
[src]
impl Unpin for Dhat
[src]
impl UnwindSafe for Dhat
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,