Registry / observability / cpuprofiler

cpuprofiler

JSON →
library0.0.4rscratesunverified

Bindings to Google's CPU profiler.

# Cargo.toml [dependencies] cpuprofiler = "0.0.4"
INSTALL
IMPORT
SIG · CPUPROFILER
C
cpuprofiler
observabilityrustv0.0.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.

PROFILER
use cpuprofiler::PROFILER;

Starts and stops CPU profiling.

use cpuprofiler::PROFILER; PROFILER.lock().unwrap().start("./profile.prof").unwrap(); // ... code to profile ... PROFILER.lock().unwrap().stop().unwrap();
Debug
Known issues
gotchaRequires gperftools to be installed on the system.
fix
Install gperftools (libgoogle-perftools-dev on Ubuntu) and link against it.
affects: all
Upgrade
Version history
0.0.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
cpuprofiler — cargo add cpuprofiler · libregistry