@@ -158,7 +158,7 @@ def __init__(self, vm, bm_suite, args):
158158 self .config_dir = os .path .join (self .output_dir , 'config' )
159159 self .log_dir = self .output_dir
160160 self .analysis_report_path = os .path .join (self .output_dir , self .executable_name + '-analysis.json' )
161- self .image_build_report_path = os . path . join (self . output_dir , self . executable_name + '-image-build-stats.json' )
161+ self .image_build_stats_file = bm_suite . image_build_stats_file (self , args )
162162 self .base_image_build_args = [os .path .join (vm .home (), 'bin' , 'native-image' )]
163163 self .base_image_build_args += ['--no-fallback' , '-g' ]
164164 self .base_image_build_args += ['-H:+VerifyGraalGraphs' , '-H:+VerifyPhases' , '--diagnostics-mode' ] if vm .is_gate else []
@@ -171,7 +171,7 @@ def __init__(self, vm, bm_suite, args):
171171 self .base_image_build_args += ['-H:ConfigurationFileDirectories=' + self .config_dir ]
172172 self .base_image_build_args += ['-H:+PrintAnalysisStatistics' , '-H:AnalysisStatisticsFile=' + self .analysis_report_path ]
173173 self .base_image_build_args += ['-H:+PrintCallEdges' ]
174- self .base_image_build_args += ['-H:+CollectImageBuildStatistics' , '-H:ImageBuildStatisticsFile=' + self .image_build_report_path ]
174+ self .base_image_build_args += ['-H:+CollectImageBuildStatistics' , '-H:ImageBuildStatisticsFile=' + self .image_build_stats_file ]
175175 if vm .is_quickbuild :
176176 self .base_image_build_args += ['-Ob' ]
177177 if vm .use_string_inlining :
@@ -557,7 +557,7 @@ def image_build_statistics_rules(self, benchmark):
557557 metric_objects .append (obj + "_after_high_tier" )
558558 rules = []
559559 for i in range (0 , len (metric_objects )):
560- rules .append (mx_benchmark .JsonFixedFileRule (self .config .image_build_report_path , {
560+ rules .append (mx_benchmark .JsonFixedFileRule (self .config .image_build_stats_file , {
561561 "benchmark" : benchmark ,
562562 "metric.name" : "image-build-stats" ,
563563 "metric.type" : "numeric" ,
@@ -582,7 +582,7 @@ def __call__(self, *args, **kwargs):
582582 phase = measured_phases [i ]
583583 value_name = phase + "_time"
584584 rules .append (
585- mx_benchmark .JsonFixedFileRule (self .config .image_build_report_path , {
585+ mx_benchmark .JsonFixedFileRule (self .config .image_build_stats_file , {
586586 "benchmark" : benchmark ,
587587 "metric.name" : "compile-time" ,
588588 "metric.type" : "numeric" ,
@@ -595,7 +595,7 @@ def __call__(self, *args, **kwargs):
595595 }, [value_name ]))
596596 value_name = phase + "_memory"
597597 rules .append (
598- mx_benchmark .JsonFixedFileRule (self .config .image_build_report_path , {
598+ mx_benchmark .JsonFixedFileRule (self .config .image_build_stats_file , {
599599 "benchmark" : benchmark ,
600600 "metric.name" : "analysis-stats" ,
601601 "metric.type" : "numeric" ,
0 commit comments