diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2019-02-07 09:58:14 +0100 |
|---|---|---|
| committer | Wesley Wiser <wwiser@gmail.com> | 2019-02-11 18:00:46 -0500 |
| commit | ae044ee893edca63488fe020900b88909bae9832 (patch) | |
| tree | e123f6d2f33ab93bf4bb73e94fb60ec91e32bf36 /src/librustc/ty | |
| parent | 57d7cfc3cf50f0c427ad3043ff09eaef20671320 (diff) | |
| download | rust-ae044ee893edca63488fe020900b88909bae9832.tar.gz rust-ae044ee893edca63488fe020900b88909bae9832.zip | |
Add self profiler events for loading incremental query results from disk
Diffstat (limited to 'src/librustc/ty')
| -rw-r--r-- | src/librustc/ty/query/plumbing.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/ty/query/plumbing.rs b/src/librustc/ty/query/plumbing.rs index f63fbd79825..74a7cc5a8b7 100644 --- a/src/librustc/ty/query/plumbing.rs +++ b/src/librustc/ty/query/plumbing.rs @@ -436,7 +436,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { // First we try to load the result from the on-disk cache let result = if Q::cache_on_disk(self.global_tcx(), key.clone()) && self.sess.opts.debugging_opts.incremental_queries { + self.sess.profiler(|p| p.incremental_load_result_start(Q::NAME)); let result = Q::try_load_from_disk(self.global_tcx(), prev_dep_node_index); + self.sess.profiler(|p| p.incremental_load_result_end(Q::NAME)); // We always expect to find a cached result for things that // can be forced from DepNode. |
