diff options
author | Aleksey Kladov <[email protected]> | 2020-07-22 12:40:45 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-22 12:40:45 +0100 |
commit | deed44a472edaf11d35fa98c7e68a288f8dfe93f (patch) | |
tree | ff50a8ada66c03237c9a364be400107331547722 /crates/ra_prof/src/lib.rs | |
parent | 26932e0060b74525f74df5e31ae0c88997e5d667 (diff) |
Remove support for jemalloc
We only used it for measuring memory usage, but now we can use glibc's
allocator for that just fine
Diffstat (limited to 'crates/ra_prof/src/lib.rs')
-rw-r--r-- | crates/ra_prof/src/lib.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs index b54531b4e..a5b408a1d 100644 --- a/crates/ra_prof/src/lib.rs +++ b/crates/ra_prof/src/lib.rs | |||
@@ -13,12 +13,6 @@ pub use crate::{ | |||
13 | memory_usage::{Bytes, MemoryUsage}, | 13 | memory_usage::{Bytes, MemoryUsage}, |
14 | }; | 14 | }; |
15 | 15 | ||
16 | // We use jemalloc mainly to get heap usage statistics, actual performance | ||
17 | // difference is not measures. | ||
18 | #[cfg(all(feature = "jemalloc", not(target_env = "msvc")))] | ||
19 | #[global_allocator] | ||
20 | static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; | ||
21 | |||
22 | #[cfg(all(feature = "mimalloc"))] | 16 | #[cfg(all(feature = "mimalloc"))] |
23 | #[global_allocator] | 17 | #[global_allocator] |
24 | static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; | 18 | static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; |