@@ -235,7 +235,13 @@ async fn create_graphs(
235
235
. collect ( ) ;
236
236
237
237
if request. benchmark . is_none ( ) {
238
- let summary_benchmark = create_summary ( ctxt, & interpolated_responses, request. kind ) ?;
238
+ let request_profile = request
239
+ . profile
240
+ . as_ref ( )
241
+ . map ( |p| p. parse :: < Profile > ( ) )
242
+ . transpose ( ) ?;
243
+ let summary_benchmark =
244
+ create_summary ( ctxt, & interpolated_responses, request. kind , request_profile) ?;
239
245
benchmarks. insert ( "Summary" . to_string ( ) , summary_benchmark) ;
240
246
}
241
247
@@ -289,12 +295,16 @@ fn create_summary(
289
295
Vec < ( ( ArtifactId , Option < f64 > ) , IsInterpolated ) > ,
290
296
> ] ,
291
297
graph_kind : GraphKind ,
298
+ profile : Option < Profile > ,
292
299
) -> ServerResult < HashMap < Profile , HashMap < String , graphs:: Series > > > {
293
300
let mut baselines = HashMap :: new ( ) ;
294
301
let mut summary_benchmark = HashMap :: new ( ) ;
295
302
let summary_query_cases = iproduct ! (
296
303
ctxt. summary_scenarios( ) ,
297
- vec![ Profile :: Check , Profile :: Debug , Profile :: Opt , Profile :: Doc ]
304
+ profile. map_or_else(
305
+ || vec![ Profile :: Check , Profile :: Debug , Profile :: Opt , Profile :: Doc ] ,
306
+ |p| vec![ p]
307
+ )
298
308
) ;
299
309
for ( scenario, profile) in summary_query_cases {
300
310
let baseline = match baselines. entry ( ( profile, scenario) ) {
0 commit comments