pub struct Span {
pub name: StrCow,
pub start_ns: u64,
pub end_ns: u64,
pub delta: u64,
pub depth: u16,
pub children: Vec<Span>,
pub notes: Vec<Note>,
/* private fields */
}Expand description
A named timespan.
The span is the most important feature of Flame. It denotes a chunk of time that is important to you.
The Span records
- Start and stop time
- A list of children (also called sub-spans)
- A list of notes
Fields§
§name: StrCowThe name of the span
start_ns: u64The timestamp of the start of the span
end_ns: u64The timestamp of the end of the span
delta: u64The time that ellapsed between start_ns and end_ns
depth: u16How deep this span is in the tree
children: Vec<Span>A list of spans that occurred inside this one
notes: Vec<Note>A list of notes that occurred inside this span
Implementations§
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 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