diff options
author | Aleksey Kladov <[email protected]> | 2019-01-26 18:12:16 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-27 19:57:18 +0000 |
commit | c7f4e3a401ec1919e1a578abe5938df430f46fc9 (patch) | |
tree | 35954f48b7c50ba6e13fbd0bc4a66c7807225fca /crates/ra_ide_api/src/lib.rs | |
parent | 09b5dc8e02317c14cff80890f2d4591843322f47 (diff) |
show jemalloc
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index a7caac02d..dc531e068 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -59,6 +59,11 @@ pub use ra_db::{ | |||
59 | Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, SourceRootId | 59 | Canceled, CrateGraph, CrateId, FileId, FilePosition, FileRange, SourceRootId |
60 | }; | 60 | }; |
61 | 61 | ||
62 | // We use jemalloc mainly to get heap usage statistics, actual performance | ||
63 | // differnece is not measures. | ||
64 | #[global_allocator] | ||
65 | static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; | ||
66 | |||
62 | pub type Cancelable<T> = Result<T, Canceled>; | 67 | pub type Cancelable<T> = Result<T, Canceled>; |
63 | 68 | ||
64 | #[derive(Default)] | 69 | #[derive(Default)] |