Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
//! Configuration for the global allocator.
|
||||
|
||||
use cfg_if::cfg_if;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "dhat_heap_profiling")] {
|
||||
#[global_allocator]
|
||||
static GLOBAL: dhat::Alloc = dhat::Alloc;
|
||||
} else if #[cfg(feature = "jemalloc")] {
|
||||
#[global_allocator]
|
||||
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user