-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// | ||
/// Use the pprof-rs profiler outputting protobuf data. | ||
/// | ||
/// Then use `go tool pprof` to render graphs from this data. | ||
/// For example: | ||
/// - `go tool pprof -svg profile.pb` for a flowchart | ||
/// - `go tool pprof -http 127.0.0.1:8000` for an interactive view including flowchart and flamegraph | ||
/// | ||
/// Needs to be called with `--profile-time=<seconds>` | ||
/// | ||
use criterion::{criterion_group, criterion_main, Criterion}; | ||
use pprof::criterion::{PProfProfiler, Output}; | ||
mod common; | ||
|
||
criterion_group!{ | ||
name = benches; | ||
config = Criterion::default() | ||
.with_profiler(PProfProfiler::new(100, Output::Protobuf)) | ||
; | ||
targets = common::bezier::all | ||
} | ||
criterion_main!(benches); |