Skip to content

Commit 6000d6a

Browse files
committed
Rename MeasureProcessor as BenchProcessor.
Because it's created in the `bench()` function which is called for each of the `bench*` subcommands.
1 parent 7940e85 commit 6000d6a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

collector/src/execute.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ pub trait Processor {
577577
}
578578
}
579579

580-
pub struct MeasureProcessor<'a> {
580+
pub struct BenchProcessor<'a> {
581581
rt: &'a mut Runtime,
582582
benchmark: &'a BenchmarkName,
583583
conn: &'a mut dyn database::Connection,
@@ -589,7 +589,7 @@ pub struct MeasureProcessor<'a> {
589589
tries: u8,
590590
}
591591

592-
impl<'a> MeasureProcessor<'a> {
592+
impl<'a> BenchProcessor<'a> {
593593
pub fn new(
594594
rt: &'a mut Runtime,
595595
conn: &'a mut dyn database::Connection,
@@ -615,7 +615,7 @@ impl<'a> MeasureProcessor<'a> {
615615
assert!(has_tracelog);
616616
}
617617

618-
MeasureProcessor {
618+
BenchProcessor {
619619
rt,
620620
upload: None,
621621
conn,
@@ -812,7 +812,7 @@ impl Upload {
812812
}
813813
}
814814

815-
impl<'a> Processor for MeasureProcessor<'a> {
815+
impl<'a> Processor for BenchProcessor<'a> {
816816
fn profiler(&self, _profile: ProfileKind) -> Profiler {
817817
if self.is_first_collection && self.is_self_profile {
818818
if cfg!(unix) {

collector/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ fn bench(
267267
n_benchmarks_remaining(benchmarks.len() - nth_benchmark)
268268
);
269269

270-
let mut processor = execute::MeasureProcessor::new(
270+
let mut processor = execute::BenchProcessor::new(
271271
rt,
272272
tx.conn(),
273273
&benchmark.name,

0 commit comments

Comments
 (0)