pub struct Profile { /* private fields */ }Available on crate features
Profiler and Runtime and Debugger only.Expand description
Profile.
Implementations§
Source§impl Profile
impl Profile
pub fn builder() -> ProfileBuilder
Sourcepub fn nodes(&self) -> &[ProfileNode]
pub fn nodes(&self) -> &[ProfileNode]
The list of profile nodes. First item is the root node.
Sourcepub fn start_time(&self) -> f64
pub fn start_time(&self) -> f64
Profiling start timestamp in microseconds.
Sourcepub fn time_deltas(&self) -> Option<&Vec<u32>>
pub fn time_deltas(&self) -> Option<&Vec<u32>>
Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more