10 lines
424 B
Rust
10 lines
424 B
Rust
#![cfg(all(not(target_env = "msvc"), feature = "hardened_malloc", target_os = "linux", not(feature = "jemalloc")))]
|
|
|
|
#[global_allocator]
|
|
static HMALLOC: hardened_malloc_rs::HardenedMalloc = hardened_malloc_rs::HardenedMalloc;
|
|
|
|
pub(crate) fn memory_usage() -> String {
|
|
String::default() //TODO: get usage
|
|
}
|
|
|
|
pub(crate) fn memory_stats() -> String { "Extended statistics are not available from hardened_malloc.".to_owned() }
|