#[non_exhaustive]pub struct TimingUnit {
pub index: usize,
pub position: usize,
pub package: String,
pub version: String,
pub target: TimingTarget,
pub features: Vec<String>,
pub start: Millis,
pub duration: Millis,
pub metadata_at: Option<Millis>,
pub unblocked: Vec<usize>,
pub unblocked_rmeta: Vec<usize>,
}Expand description
One entry of the report’s UNIT_DATA array.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: usizeThe report’s own i, which is the unit’s index in Cargo’s sorted unit list. The array is
ordered by start time, so this is a permutation rather than the position, and the
unblocked_* fields refer to it.
position: usizePosition in the array, which is start order.
package: StringThe package’s name, which the report states authoritatively.
version: StringThe package’s version.
target: TimingTargetWhat sort of target this is, as far as the report can say.
features: Vec<String>The features the unit was compiled with, sorted. These separate two instances of one package at one version when the rest of the report cannot.
start: MillisWhen the unit started, measured from the beginning of the build.
duration: MillisHow long the unit took.
metadata_at: Option<Millis>How far into the unit its frontend section ended, which is when metadata became available,
clamped to the unit’s own duration.
unblocked: Vec<usize>Units this one unblocked by finishing. Not the dependency graph: only the units for which this one happened to be the last remaining blocker, which covered 51% of the real edges on a measured 28-unit build. Useful as a cross-check, useless as a source.
unblocked_rmeta: Vec<usize>Units this one unblocked by emitting its metadata. Partial in the same way.