From fe21c4c52221585c507211b4c30570b0f2e93c85 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Wed, 10 Jan 2018 18:23:50 +0100 Subject: Add -Ztime-passes line for dep-graph loading. --- src/librustc_driver/driver.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 51c61005bdd..5282895d22a 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -889,10 +889,11 @@ pub fn phase_2_configure_and_expand(sess: &Session, let dep_graph = match future_dep_graph { None => DepGraph::new_disabled(), Some(future) => { - let prev_graph = future - .open() - .expect("Could not join with background dep_graph thread") - .open(sess); + let prev_graph = time(time_passes, "blocked while dep-graph loading finishes", || { + future.open() + .expect("Could not join with background dep_graph thread") + .open(sess) + }); DepGraph::new(prev_graph) } }; -- cgit 1.4.1-3-g733a5