pyroscope 0.3.0

Pyroscope Profiler
Documentation

Pyroscope Profiler

Pyroscope Profiler for Rust. Profile your Rust applications.

license tests build Crate


You may be looking for:

Quick Start

Add this to your Cargo.toml:

[dependencies]
pyroscope = "0.3.0"

Configure your profiler:

 let mut agent =
     PyroscopeAgent::builder("http://localhost:4040", "myapp-profile")
     .sample_rate(100)
     .build()?;

Profile your code:


 agent.start();
 // Profiled computation
 agent.stop();
 
 // Non-profiled computation

Getting help

You can read the Docs or check the examples for detailed usage of the library. You can also join the Slack channel if you have questions.

License

Pyroscope is distributed under the Apache License (Version 2.0).

See LICENSE for details.