Move memory usage statistics to ra_prof

This commit is contained in:
Aleksey Kladov 2019-06-30 13:30:17 +03:00
parent e18389d268
commit 18a1e092e9
9 changed files with 78 additions and 68 deletions

View file

@ -74,12 +74,6 @@ pub use crate::{
pub use ra_db::{Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, SourceRootId, Edition};
pub use hir::Documentation;
// We use jemalloc mainly to get heap usage statistics, actual performance
// difference is not measures.
#[cfg(feature = "jemalloc")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
pub type Cancelable<T> = Result<T, Canceled>;
#[derive(Debug)]