pub struct Timings {
pub fanout: Duration,
pub tokenize: Duration,
pub prune: Duration,
pub governance: Duration,
pub total: Duration,
}Expand description
Per-phase timings collected by the builder. All durations are wall-clock
time within BriefBuilder::build.
fanout is the longest source contribute() time, not the sum —
sources are fanned out in parallel, so wall-clock is bounded by the
slowest source plus serialisation overhead.
Fields§
§fanout: DurationLongest source contribute() time (max across the fan-out).
tokenize: DurationTime spent tokenizing contributions.
prune: DurationTime spent in budget pruning.
governance: DurationTime spent in governance.review.
total: DurationTotal wall-clock time inside build.
Trait Implementations§
impl Copy for Timings
Source§impl<'de> Deserialize<'de> for Timings
impl<'de> Deserialize<'de> for Timings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Timings
impl StructuralPartialEq for Timings
Auto Trait Implementations§
impl Freeze for Timings
impl RefUnwindSafe for Timings
impl Send for Timings
impl Sync for Timings
impl Unpin for Timings
impl UnsafeUnpin for Timings
impl UnwindSafe for Timings
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