disable profiling

This commit is contained in:
Aleksey Kladov 2020-07-11 03:41:52 +02:00
parent 5e25000763
commit 7f6e5de37c
3 changed files with 1 additions and 7 deletions

View file

@ -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);

View file

@ -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();

View file

@ -24,4 +24,4 @@ cpu_profiler = []
# Uncomment to enable for the whole crate graph
# default = [ "backtrace" ]
# default = [ "jemalloc" ]
default = [ "cpu_profiler" ]
# default = [ "cpu_profiler" ]