pub enum MarkerTiming {
Instant(Timestamp),
Interval(Timestamp, Timestamp),
IntervalStart(Timestamp),
IntervalEnd(Timestamp),
}
Expand description
Specifies timestamps for a marker.
Variants§
Instant(Timestamp)
Instant markers describe a single point in time.
Interval(Timestamp, Timestamp)
Interval markers describe a time interval with a start and end timestamp.
IntervalStart(Timestamp)
A marker for just the start of an actual marker. Can be paired with an
IntervalEnd
marker of the same name; if no end marker is supplied, this
creates a marker that extends to the end of the profile.
This can be used for long-running markers for pieces of activity that may not have completed by the time the profile is captured.
IntervalEnd(Timestamp)
A marker for just the end of an actual marker. Can be paired with an
IntervalStart
marker of the same name; if no start marker is supplied,
this creates a marker which started before the beginning of the profile.
This can be used to mark pieces of activity which started before profiling began.
Trait Implementations§
source§impl Clone for MarkerTiming
impl Clone for MarkerTiming
source§fn clone(&self) -> MarkerTiming
fn clone(&self) -> MarkerTiming
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more