From 0d2f97e83eaf8cd5d313affca1a0f52a2db6b54b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 27 May 2019 14:27:05 +0300 Subject: specifically profile cancellation --- crates/ra_ide_api/src/change.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_ide_api/src') diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs index 2434f428f..0e64abdbd 100644 --- a/crates/ra_ide_api/src/change.rs +++ b/crates/ra_ide_api/src/change.rs @@ -156,6 +156,10 @@ impl RootDatabase { pub(crate) fn apply_change(&mut self, change: AnalysisChange) { let _p = profile("RootDatabase::apply_change"); log::info!("apply_change {:?}", change); + { + let _p = profile("RootDatabase::apply_change/cancellation"); + self.salsa_runtime().next_revision(); + } if !change.new_roots.is_empty() { let mut local_roots = Vec::clone(&self.local_roots()); for (root_id, is_local) in change.new_roots { -- cgit v1.2.3