[package]
edition = "2024"
rust-version = "1.87"
name = "pprof-alloc"
version = "0.2.0"
build = false
include = [
"Cargo.toml",
"LICENSE",
"README.md",
"examples/**",
"src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Allocation profiling and Linux memory telemetry for Rust services."
documentation = "https://docs.rs/pprof-alloc"
readme = "README.md"
keywords = [
"pprof",
"allocator",
"profiling",
"memory",
"heap",
]
categories = [
"development-tools::profiling",
"memory-management",
"os::linux-apis",
]
license = "Apache-2.0"
repository = "https://github.com/howardjohn/pprof-alloc"
[features]
allocator-jemalloc = ["dep:tikv-jemalloc-ctl"]
allocator-mimalloc = ["dep:libmimalloc-sys"]
default = ["frame-pointer"]
frame-pointer = []
[lib]
name = "pprof_alloc"
path = "src/lib.rs"
[[example]]
name = "allocation_patterns"
path = "examples/allocation_patterns.rs"
[[example]]
name = "capture_benchmark"
path = "examples/capture_benchmark.rs"
[dependencies.ahash]
version = "0.8"
[dependencies.anyhow]
version = "1.0"
[dependencies.backtrace]
version = "0.3"
[dependencies.dashmap]
version = "6.1"
[dependencies.errno]
version = "0.3"
[dependencies.flate2]
version = "1.1"
[dependencies.itertools]
version = "0.14"
[dependencies.lazy_static]
version = "1.5"
[dependencies.libc]
version = "0.2"
[dependencies.libmimalloc-sys]
version = "0.1"
features = ["extended"]
optional = true
[dependencies.num]
version = "0.4"
[dependencies.once_cell]
version = "1.21"
[dependencies.paste]
version = "1.0"
[dependencies.prometheus-client]
version = "0.24"
[dependencies.prost]
version = "0.13"
[dependencies.quick-xml]
version = "0.38"
features = ["serialize"]
[dependencies.regex]
version = "1.12"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.smallvec]
version = "1.15"
[dependencies.thiserror]
version = "1.0"
[dependencies.tikv-jemalloc-ctl]
version = "0.6"
features = [
"stats",
"use_std",
]
optional = true
[dependencies.tracing]
version = "0.1"
[dev-dependencies.human_bytes]
version = "0.4"
[dev-dependencies.parking_lot]
version = "0.12"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.tokio]
version = "1.0"
features = ["full"]