aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-22 12:42:53 +0100
committerAleksey Kladov <[email protected]>2020-07-22 12:42:53 +0100
commit9ad41eb9085cd7ceaf479f659a7071df81059b7c (patch)
tree6dfcadbf3b6a333777f22f54db773118bf1916d4 /crates/ra_prof/src
parentdeed44a472edaf11d35fa98c7e68a288f8dfe93f (diff)
Setup global allocator in the correct crate
It worked before, but was roundabout
Diffstat (limited to 'crates/ra_prof/src')
-rw-r--r--crates/ra_prof/src/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs
index a5b408a1d..ba5609703 100644
--- a/crates/ra_prof/src/lib.rs
+++ b/crates/ra_prof/src/lib.rs
@@ -13,10 +13,6 @@ pub use crate::{
13 memory_usage::{Bytes, MemoryUsage}, 13 memory_usage::{Bytes, MemoryUsage},
14}; 14};
15 15
16#[cfg(all(feature = "mimalloc"))]
17#[global_allocator]
18static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
19
20/// Prints backtrace to stderr, useful for debugging. 16/// Prints backtrace to stderr, useful for debugging.
21#[cfg(feature = "backtrace")] 17#[cfg(feature = "backtrace")]
22pub fn print_backtrace() { 18pub fn print_backtrace() {