test: add pprof flamgegraph bench (#6712)

This commit is contained in:
Matthias Seitz
2024-02-21 19:41:27 +01:00
committed by GitHub
parent 84b13286f0
commit 4487886fa2
3 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,7 @@
use criterion::{
criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion,
};
use pprof::criterion::{Output, PProfProfiler};
use proptest::{
prelude::*,
strategy::ValueTree,
@ -233,5 +234,9 @@ fn truncate_basefee(
});
}
criterion_group!(truncate, txpool_truncate);
criterion_group! {
name = truncate;
config = Criterion::default().with_profiler(PProfProfiler::new(100, Output::Flamegraph(None)));
targets = txpool_truncate
}
criterion_main!(truncate);