diff options
author | Aleksey Kladov <[email protected]> | 2020-07-11 02:41:52 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-11 02:41:52 +0100 |
commit | 7f6e5de37c3c5a73865350cab1c976291be56fe2 (patch) | |
tree | 4baab51c3a82e30fc6fc32099d0315e44efce6d4 | |
parent | 5e25000763e97ef006dd05ac40198ae59e3f03c3 (diff) |
disable profiling
-rw-r--r-- | crates/ra_hir_ty/src/infer.rs | 5 | ||||
-rw-r--r-- | crates/ra_ide/src/completion.rs | 1 | ||||
-rw-r--r-- | crates/ra_prof/Cargo.toml | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/crates/ra_hir_ty/src/infer.rs b/crates/ra_hir_ty/src/infer.rs index d8888e050..5c56c2eb0 100644 --- a/crates/ra_hir_ty/src/infer.rs +++ b/crates/ra_hir_ty/src/infer.rs | |||
@@ -65,11 +65,6 @@ mod coerce; | |||
65 | /// The entry point of type inference. | 65 | /// The entry point of type inference. |
66 | pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> { | 66 | pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> { |
67 | let _p = profile("infer_query"); | 67 | let _p = profile("infer_query"); |
68 | let _cpu_profieler; | ||
69 | if ra_prof::Scope::is_active() { | ||
70 | _cpu_profieler = ra_prof::cpu_profiler(); | ||
71 | } | ||
72 | |||
73 | let resolver = def.resolver(db.upcast()); | 68 | let resolver = def.resolver(db.upcast()); |
74 | let mut ctx = InferenceContext::new(db, def, resolver); | 69 | let mut ctx = InferenceContext::new(db, def, resolver); |
75 | 70 | ||
diff --git a/crates/ra_ide/src/completion.rs b/crates/ra_ide/src/completion.rs index 2a285718e..f3a5e9573 100644 --- a/crates/ra_ide/src/completion.rs +++ b/crates/ra_ide/src/completion.rs | |||
@@ -106,7 +106,6 @@ pub(crate) fn completions( | |||
106 | config: &CompletionConfig, | 106 | config: &CompletionConfig, |
107 | position: FilePosition, | 107 | position: FilePosition, |
108 | ) -> Option<Completions> { | 108 | ) -> Option<Completions> { |
109 | let _s = ra_prof::Scope::enter(); | ||
110 | let ctx = CompletionContext::new(db, position, config)?; | 109 | let ctx = CompletionContext::new(db, position, config)?; |
111 | 110 | ||
112 | let mut acc = Completions::default(); | 111 | let mut acc = Completions::default(); |
diff --git a/crates/ra_prof/Cargo.toml b/crates/ra_prof/Cargo.toml index db9b59ed6..eabfcebb0 100644 --- a/crates/ra_prof/Cargo.toml +++ b/crates/ra_prof/Cargo.toml | |||
@@ -24,4 +24,4 @@ cpu_profiler = [] | |||
24 | # Uncomment to enable for the whole crate graph | 24 | # Uncomment to enable for the whole crate graph |
25 | # default = [ "backtrace" ] | 25 | # default = [ "backtrace" ] |
26 | # default = [ "jemalloc" ] | 26 | # default = [ "jemalloc" ] |
27 | default = [ "cpu_profiler" ] | 27 | # default = [ "cpu_profiler" ] |