pub struct Timings<'cfg> {
Show 16 fields config: &'cfg Config, enabled: bool, report_html: bool, report_json: bool, start: Instant, start_str: String, root_targets: Vec<(String, Vec<String>)>, profile: String, total_fresh: u32, total_dirty: u32, unit_times: Vec<UnitTime>, active: HashMap<JobId, UnitTime>, concurrency: Vec<Concurrency>, last_cpu_state: Option<State>, last_cpu_recording: Instant, cpu_usage: Vec<(f64, f64)>,
}

Fields§

§config: &'cfg Config§enabled: bool

Whether or not timings should be captured.

§report_html: bool

If true, saves an HTML report to disk.

§report_json: bool

If true, emits JSON information with timing information.

§start: Instant

When Cargo started.

§start_str: String

A rendered string of when compilation started.

§root_targets: Vec<(String, Vec<String>)>

A summary of the root units.

Tuples of (package_description, target_descriptions).

§profile: String

The build profile.

§total_fresh: u32

Total number of fresh units.

§total_dirty: u32

Total number of dirty units.

§unit_times: Vec<UnitTime>

Time tracking for each individual unit.

§active: HashMap<JobId, UnitTime>

Units that are in the process of being built. When they finished, they are moved to unit_times.

§concurrency: Vec<Concurrency>

Concurrency-tracking information. This is periodically updated while compilation progresses.

§last_cpu_state: Option<State>

Last recorded state of the system’s CPUs and when it happened

§last_cpu_recording: Instant§cpu_usage: Vec<(f64, f64)>

Recorded CPU states, stored as tuples. First element is when the recording was taken and second element is percentage usage of the system.

Implementations§

Mark that a unit has started running.

Mark that the .rmeta file as generated.

Mark that a unit has finished running.

This is called periodically to mark the concurrency of internal structures.

Mark that a fresh unit was encountered.

Mark that a dirty unit was encountered.

Take a sample of CPU usage

Call this when all units are finished.

Save HTML report to disk.

Render the summary table.

Render the table of all units.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 336 bytes