mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
disable profiling
This commit is contained in:
parent
5e25000763
commit
7f6e5de37c
3 changed files with 1 additions and 7 deletions
|
@ -65,11 +65,6 @@ mod coerce;
|
|||
/// The entry point of type inference.
|
||||
pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> {
|
||||
let _p = profile("infer_query");
|
||||
let _cpu_profieler;
|
||||
if ra_prof::Scope::is_active() {
|
||||
_cpu_profieler = ra_prof::cpu_profiler();
|
||||
}
|
||||
|
||||
let resolver = def.resolver(db.upcast());
|
||||
let mut ctx = InferenceContext::new(db, def, resolver);
|
||||
|
||||
|
|
|
@ -106,7 +106,6 @@ pub(crate) fn completions(
|
|||
config: &CompletionConfig,
|
||||
position: FilePosition,
|
||||
) -> Option<Completions> {
|
||||
let _s = ra_prof::Scope::enter();
|
||||
let ctx = CompletionContext::new(db, position, config)?;
|
||||
|
||||
let mut acc = Completions::default();
|
||||
|
|
|
@ -24,4 +24,4 @@ cpu_profiler = []
|
|||
# Uncomment to enable for the whole crate graph
|
||||
# default = [ "backtrace" ]
|
||||
# default = [ "jemalloc" ]
|
||||
default = [ "cpu_profiler" ]
|
||||
# default = [ "cpu_profiler" ]
|
||||
|
|
Loading…
Reference in a new issue