mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
add a couple of profiling points
This commit is contained in:
parent
06615bd331
commit
c4a5aa45dc
4 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,7 @@ use ra_db::{
|
|||
salsa::{Database, SweepStrategy},
|
||||
};
|
||||
use ra_syntax::SourceFile;
|
||||
use ra_prof::profile;
|
||||
use relative_path::RelativePathBuf;
|
||||
use rayon::prelude::*;
|
||||
|
||||
|
@ -153,6 +154,7 @@ const GC_COOLDOWN: time::Duration = time::Duration::from_millis(100);
|
|||
|
||||
impl RootDatabase {
|
||||
pub(crate) fn apply_change(&mut self, change: AnalysisChange) {
|
||||
let _p = profile("RootDatabase::apply_change");
|
||||
log::info!("apply_change {:?}", change);
|
||||
if !change.new_roots.is_empty() {
|
||||
let mut local_roots = Vec::clone(&self.local_roots());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue