pub struct Snapshot {
pub threads: Vec<ThreadTrace>,
pub refused_tracks: u64,
}Expand description
Everything every thread recorded since the last drain.
Tracks that recorded nothing and dropped nothing are absent: a per-frame trace has no room for a row saying a thread was idle.
Fields§
§threads: Vec<ThreadTrace>One entry per thread that recorded, in track order.
refused_tracks: u64Threads refused a track because MAX_TRACKS were already taken. Their
spans are not in here and are not counted in any
ThreadTrace::dropped, because they never reached a buffer.
Implementations§
Trait Implementations§
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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