Registry / observability / allocative

allocative

JSON →
library0.3.4rscratesunverified

Inspect the Rust object tree and output it as a flamegraph.

# Cargo.toml [dependencies] allocative = "0.3.4"
INSTALL
IMPORT
SIG · ALLOCATIVE
A
allocative
observabilityrustv0.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Allocative
use allocative::Allocative;

Derive Allocative and measure memory usage.

use allocative::Allocative; #[derive(Allocative)] struct MyStruct { x: u32, y: String, } fn main() { let s = MyStruct { x: 42, y: "hello".into() }; let stats = allocative::measure(&s); println!("{:?}", stats); }
Debug
Known issues
gotchaRequires nightly Rust for some features.
fix
Use nightly toolchain or check feature flags.
affects: >=0.3.0
Upgrade
Version history
0.3.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
83 hits · last 30 days
node
74
OpenAI (training)
1
Resources
allocative — cargo add allocative · libregistry