Registry / utility / thread-profiler

thread-profiler

JSON →
library0.3.0rscratesunverified

A thread profiling library that outputs profiles in the Chromium trace format.

# Cargo.toml [dependencies] thread_profiler = "0.3.0"
INSTALL
IMPORT
SIG · THREAD-PROFILER
T
thread-profiler
utilityrustv0.3.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.

profile_scope
use thread_profiler::profile_scope;

Profiles a function and writes output to a JSON file.

use thread_profiler::profile_scope; fn my_function() { profile_scope!("my_function"); // ... work ... } fn main() { thread_profiler::write_profile!("profile.json"); my_function(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
thread-profiler — cargo add thread-profiler · libregistry