mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
* Tracing executor and metrics rename * Appease clippy * Merge branch 'unstable' into modularise-task-executor
27 lines
809 B
TOML
27 lines
809 B
TOML
[package]
|
|
name = "malloc_utils"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = { workspace = true }
|
|
|
|
[dependencies]
|
|
metrics = { workspace = true }
|
|
libc = "0.2.79"
|
|
parking_lot = { workspace = true }
|
|
tikv-jemalloc-ctl = { 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",
|
|
] }
|
|
|
|
[target.'cfg(not(target_os = "linux"))'.dependencies]
|
|
tikv-jemallocator = { version = "0.6.0", optional = true, features = ["stats"] }
|
|
|
|
[features]
|
|
mallinfo2 = []
|
|
jemalloc = ["tikv-jemallocator", "tikv-jemalloc-ctl"]
|
|
jemalloc-profiling = ["tikv-jemallocator/profiling"]
|