pub struct Profile<'a> { /* private fields */ }Expand description
Profile.
Implementations§
Source§impl<'a> Profile<'a>
impl<'a> Profile<'a>
Sourcepub fn builder(
nodes: Vec<ProfileNode<'a>>,
start_time: f64,
end_time: f64,
) -> ProfileBuilder<'a>
pub fn builder( nodes: Vec<ProfileNode<'a>>, start_time: f64, end_time: f64, ) -> ProfileBuilder<'a>
Creates a builder for this type with the required parameters:
nodes: The list of profile nodes. First item is the root node.start_time: Profiling start timestamp in microseconds.end_time: Profiling end timestamp in microseconds.
Sourcepub fn nodes(&self) -> &[ProfileNode<'a>]
pub fn nodes(&self) -> &[ProfileNode<'a>]
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<&[i64]>
pub fn time_deltas(&self) -> Option<&[i64]>
Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Profile<'a>
impl<'de, 'a> Deserialize<'de> for Profile<'a>
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<'a> Freeze for Profile<'a>
impl<'a> RefUnwindSafe for Profile<'a>
impl<'a> Send for Profile<'a>
impl<'a> Sync for Profile<'a>
impl<'a> Unpin for Profile<'a>
impl<'a> UnsafeUnpin for Profile<'a>
impl<'a> UnwindSafe for Profile<'a>
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