Add -Ztime-passes line for dep-graph loading.

This commit is contained in:
Michael Woerister 2018-01-10 18:23:50 +01:00
parent f62f774035
commit fe21c4c522

View File

@ -889,10 +889,11 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
let dep_graph = match future_dep_graph { let dep_graph = match future_dep_graph {
None => DepGraph::new_disabled(), None => DepGraph::new_disabled(),
Some(future) => { Some(future) => {
let prev_graph = future let prev_graph = time(time_passes, "blocked while dep-graph loading finishes", || {
.open() future.open()
.expect("Could not join with background dep_graph thread") .expect("Could not join with background dep_graph thread")
.open(sess); .open(sess)
});
DepGraph::new(prev_graph) DepGraph::new(prev_graph)
} }
}; };