aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-04-14 23:21:12 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-04-14 23:21:12 +0100
commit546d9be2a7bf7b3942c125f922a01321aea6ad26 (patch)
tree7323905a2e0efe7fefb029c8d049987df6a6462f /crates/ra_ide_api/src
parente1a2649aff0a9387fb14646a56cb652061bc42ec (diff)
parent247ac265f1e7f2d812e6f9174d48ceef45465b91 (diff)
Merge #1146
1146: Moar profiling r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r--crates/ra_ide_api/src/change.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs
index a4a086931..5bfdbe7e9 100644
--- a/crates/ra_ide_api/src/change.rs
+++ b/crates/ra_ide_api/src/change.rs
@@ -9,6 +9,7 @@ use ra_db::{
9 salsa::{Database, SweepStrategy}, 9 salsa::{Database, SweepStrategy},
10}; 10};
11use ra_syntax::SourceFile; 11use ra_syntax::SourceFile;
12use ra_prof::profile;
12use relative_path::RelativePathBuf; 13use relative_path::RelativePathBuf;
13use rayon::prelude::*; 14use rayon::prelude::*;
14 15
@@ -153,6 +154,7 @@ const GC_COOLDOWN: time::Duration = time::Duration::from_millis(100);
153 154
154impl RootDatabase { 155impl RootDatabase {
155 pub(crate) fn apply_change(&mut self, change: AnalysisChange) { 156 pub(crate) fn apply_change(&mut self, change: AnalysisChange) {
157 let _p = profile("RootDatabase::apply_change");
156 log::info!("apply_change {:?}", change); 158 log::info!("apply_change {:?}", change);
157 if !change.new_roots.is_empty() { 159 if !change.new_roots.is_empty() {
158 let mut local_roots = Vec::clone(&self.local_roots()); 160 let mut local_roots = Vec::clone(&self.local_roots());