Registry / observability / gperftools

gperftools

JSON →
library0.2.0rscratesunverified

Rust bindings to Google's gperftools for CPU profiling and heap analysis.

# Cargo.toml [dependencies] gperftools = "0.2.0"
INSTALL
IMPORT
SIG · GPERFTOOLS
G
gperftools
observabilityrustv0.2.0
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.

Profiler
use gperftools::profiler::Profiler;

Start and stop CPU profiling with gperftools.

use gperftools::profiler::Profiler; Profiler::start("./profile.prof").unwrap(); // ... your code ... Profiler::stop().unwrap();
Debug
Known issues
gotchaRequires gperftools C library installed on the system.
fix
Install gperftools via your package manager (e.g., `apt install google-perftools` on Ubuntu).
affects: >=0.2.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
2
Resources
gperftools — cargo add gperftools · libregistry