[package] name = "malloc_utils" version = "0.1.0" authors = ["Paul Hauner "] edition = { workspace = true } [features] mallinfo2 = [] jemalloc = ["tikv-jemallocator", "tikv-jemalloc-ctl"] jemalloc-profiling = ["tikv-jemallocator/profiling"] [dependencies] libc = "0.2.79" metrics = { workspace = true } parking_lot = { workspace = true } tikv-jemalloc-ctl = { version = "0.6.0", optional = true, features = ["stats"] } [target.'cfg(not(target_os = "linux"))'.dependencies] tikv-jemallocator = { version = "0.6.0", optional = true, features = ["stats"] } # Jemalloc's background_threads feature requires Linux (pthreads). [target.'cfg(target_os = "linux")'.dependencies] tikv-jemallocator = { version = "0.6.0", optional = true, features = [ "stats", "background_threads", ] }