pub struct Span {
pub name: String,
pub depth: u32,
pub start_ns: u64,
pub end_ns: u64,
pub thread_id: u64,
}Expand description
A single profiling span (named time range).
Fields§
§name: String§depth: u32§start_ns: u64§end_ns: u64§thread_id: u64Implementations§
Source§impl Span
impl Span
pub fn duration_us(&self) -> f64
pub fn duration_ms(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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