pub struct Stage {
pub name: &'static str,
pub start: Stamp,
pub end: Stamp,
pub wall_ns: u64,
pub cpu_ns: u64,
}Expand description
One interval between a span’s previous boundary and its next explicit mark.
Durations use the opening clock samples at both boundaries. They include nested runtime work and any recording overhead after the previous boundary.
Fields§
§name: &'static strCaller-provided label for the interval ending at this mark.
start: StampPrevious mark boundary, or the span start for the first interval.
end: StampBoundary captured before this stage is appended to the report vector.
wall_ns: u64Difference between end.wall_ns and start.wall_ns.
cpu_ns: u64Difference between process-wide end.cpu_ns and start.cpu_ns.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Stage
impl Freeze for Stage
impl Move for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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