Registry / observability / flame
library0.2.2rscratesunverified

A profiling and flamegraph library for Rust applications.

# Cargo.toml [dependencies] flame = "0.2.2"
INSTALL
IMPORT
SIG · FLAME
F
flame
observabilityrustv0.2.2
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.

start_guard
use flame::start_guard;

Starts a profiling span named 'main'.

use flame::start_guard; fn main() { let _guard = start_guard("main"); // code to profile println!("Profiling with flame"); }
Debug
Known issues
gotchaFlamegraph output requires calling `flame::dump_html()` or similar at the end.
fix
Add `flame::dump_html(&mut std::fs::File::create("flamegraph.html").unwrap()).unwrap();` at program exit.
affects: >=0.2.0
Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
12
OpenAI (training)
2
Resources