Skip to content

Commit 8c31f3e

Browse files
committed
fix runtime benchmark filter
1 parent c342aaf commit 8c31f3e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

site/src/request_handlers/dashboard.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ pub async fn handle_dashboard(ctxt: Arc<SiteCtxt>) -> ServerResult<dashboard::Re
8585
let compile_benchmark_query = selector::CompileBenchmarkQuery::default()
8686
.benchmark(selector::Selector::Subset(STABLE_BENCHMARKS.clone()))
8787
.metric(selector::Selector::One(Metric::WallTime));
88-
let runtime_benchmark_query = selector::RuntimeBenchmarkQuery::default()
89-
.benchmark(selector::Selector::Subset(STABLE_BENCHMARKS.clone()))
90-
.metric(selector::Selector::One(Metric::WallTime));
9188

9289
let summary_scenarios = ctxt.summary_scenarios();
9390
let aids = &artifact_ids;
@@ -133,7 +130,10 @@ pub async fn handle_dashboard(ctxt: Arc<SiteCtxt>) -> ServerResult<dashboard::Re
133130
.await
134131
.unwrap();
135132

136-
let runtime_benchmark_query = &runtime_benchmark_query;
133+
let runtime_benchmark_query = selector::RuntimeBenchmarkQuery::default()
134+
.benchmark(selector::Selector::All)
135+
.metric(selector::Selector::One(Metric::WallTime));
136+
137137
let responses = ctxt
138138
.statistic_series(runtime_benchmark_query.clone(), aids.clone())
139139
.await?;

site/src/selector.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ pub fn range_subset(data: Vec<Commit>, range: RangeInclusive<Bound>) -> Vec<Comm
8686
}
8787
}
8888

89+
#[derive(Debug)]
8990
struct ArtifactIdIter {
9091
ids: Arc<Vec<ArtifactId>>,
9192
idx: usize,
@@ -424,6 +425,7 @@ impl SiteCtxt {
424425
}
425426
}
426427

428+
#[derive(Debug)]
427429
pub struct StatisticSeries {
428430
artifact_ids: ArtifactIdIter,
429431
points: std::vec::IntoIter<Option<f64>>,

0 commit comments

Comments
 (0)