Skip to content

Commit 4e0b40d

Browse files
committed
refactor(timings): remove unused rmeta_time
This can be derived from sections.
1 parent 8535a2b commit 4e0b40d

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/cargo/core/compiler/timings/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ struct UnitData {
132132
target: String,
133133
start: f64,
134134
duration: f64,
135-
rmeta_time: Option<f64>,
136135
unblocked_units: Vec<usize>,
137136
unblocked_rmeta_units: Vec<usize>,
138137
sections: Option<Vec<(report::SectionName, report::SectionData)>>,

src/cargo/core/compiler/timings/report.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ fn to_unit_data(unit_times: &[UnitTime]) -> Vec<UnitData> {
396396
target: ut.target.clone(),
397397
start: round(ut.start),
398398
duration: round(ut.duration),
399-
rmeta_time: ut.rmeta_time.map(round),
400399
unblocked_units,
401400
unblocked_rmeta_units,
402401
sections,

src/cargo/core/compiler/timings/timings.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,7 @@ function render_pipeline_graph() {
150150
});
151151
}
152152
}
153-
else if (unit.rmeta_time != null) {
154-
// We only know the rmeta time
155-
sections.push({
156-
name: "codegen",
157-
start: x + px_per_sec * unit.rmeta_time,
158-
width: (unit.duration - unit.rmeta_time) * px_per_sec
159-
});
160-
}
153+
161154
let width = Math.max(px_per_sec * unit.duration, 1.0);
162155
UNIT_COORDS[unit.i] = {x, y, width, sections};
163156

0 commit comments

Comments
 (0)