@@ -38,6 +38,29 @@ private IEnumerable<string> PerMethod(Summary summary)
3838 {
3939 var files = new List < string > ( ) ;
4040
41+ if ( summary . Reports [ 0 ] . BenchmarkCase . HasParameters )
42+ {
43+ int paramCount = summary . Reports [ 0 ] . BenchmarkCase . Parameters . Count ;
44+
45+ if ( paramCount == 1 )
46+ {
47+ var subPlots = GetSubPlots ( summary ) ;
48+
49+ foreach ( var method in summary . Reports . Select ( r => r . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo ) . Distinct ( ) )
50+ {
51+ var title = TitleFormatter . Format ( this . Info , summary , string . Join ( "," , summary . Reports . Select ( r => r . BenchmarkCase . Job . ResolvedId ) . Distinct ( ) ) , method ) ;
52+ var file = Path . Combine ( summary . ResultsDirectoryPath , ExporterBase . GetFileName ( summary ) + "-" + method + "-columnchart" ) ;
53+ var methodSubPlots = subPlots . ToPerMethod ( method ) ;
54+ ColumnChartRenderer . Render ( methodSubPlots , title , file , Info . Width , Info . Height , ColorMap . GetColorList ( Info ) ) ;
55+ files . Add ( file + ".svg" ) ;
56+ }
57+
58+ return files ;
59+ }
60+
61+ return Array . Empty < string > ( ) ;
62+ }
63+
4164 foreach ( var report in summary . Reports )
4265 {
4366 if ( ! report . Success )
@@ -47,7 +70,7 @@ private IEnumerable<string> PerMethod(Summary summary)
4770
4871 int paramCount = report . BenchmarkCase . Parameters . Count ;
4972
50- var title = TitleFormatter . Format ( this . Info , summary , report . BenchmarkCase . Job . ResolvedId ) ;
73+ var title = TitleFormatter . Format ( this . Info , summary , report . BenchmarkCase . Job . ResolvedId , report . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo ) ;
5174 var fileSlug = paramCount == 0
5275 ? report . BenchmarkCase . Job . ResolvedId + "-" + report . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo
5376 : report . BenchmarkCase . Job . ResolvedId + "-" + report . BenchmarkCase . Descriptor . WorkloadMethodDisplayInfo + "-" + report . BenchmarkCase . Parameters . PrintInfo ;
@@ -83,7 +106,7 @@ private IEnumerable<string> PerJob(Summary summary)
83106 {
84107 var title = TitleFormatter . Format ( this . Info , summary , job ) ;
85108 var file = Path . Combine ( summary . ResultsDirectoryPath , ExporterBase . GetFileName ( summary ) + "-" + job + "-columnchart" ) ;
86- var jobSubPlots = subPlots . Select ( s => new SubPlot ( ) { Title = s . Title , Traces = s . Traces . Where ( t => t . TraceName == job ) . ToList ( ) } ) ;
109+ var jobSubPlots = subPlots . ToPerJob ( job ) ;
87110 ColumnChartRenderer . Render ( jobSubPlots , title , file , Info . Width , Info . Height , ColorMap . GetColorList ( Info ) ) ;
88111 files . Add ( file + ".svg" ) ;
89112 }
0 commit comments