Skip to content

Commit fe21c4c

Browse files
Add -Ztime-passes line for dep-graph loading.
1 parent f62f774 commit fe21c4c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/librustc_driver/driver.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -889,10 +889,11 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
889889
let dep_graph = match future_dep_graph {
890890
None => DepGraph::new_disabled(),
891891
Some(future) => {
892-
let prev_graph = future
893-
.open()
894-
.expect("Could not join with background dep_graph thread")
895-
.open(sess);
892+
let prev_graph = time(time_passes, "blocked while dep-graph loading finishes", || {
893+
future.open()
894+
.expect("Could not join with background dep_graph thread")
895+
.open(sess)
896+
});
896897
DepGraph::new(prev_graph)
897898
}
898899
};

0 commit comments

Comments
 (0)