|
33 | 33 | import mx_sdk_benchmark
|
34 | 34 | from mx_benchmark import DataPoints
|
35 | 35 | from mx_sdk_benchmark import DaCapoBenchmarkSuite, ScalaDaCapoBenchmarkSuite, RenaissanceBenchmarkSuite, SpecJvm2008BenchmarkSuite
|
36 |
| -from mx_sdk_benchmark import JvmciJdkVm, SUCCESSFUL_STAGE_PATTERNS, Stage |
| 36 | +from mx_sdk_benchmark import JvmciJdkVm, SUCCESSFUL_STAGE_PATTERNS |
37 | 37 |
|
38 | 38 | _suite = mx.suite('compiler')
|
39 | 39 |
|
@@ -259,20 +259,8 @@ def get_jmh_result_file(self, bm_suite_args: List[str]) -> Optional[str]:
|
259 | 259 | :class:`mx_benchmark.JMHJsonRule`) will produce datapoints at every stage, based on results from a previous
|
260 | 260 | stage.
|
261 | 261 | """
|
262 |
| - if self.is_native_mode(bm_suite_args) and not self.stages_info.fallback_mode: |
263 |
| - # At this point, the StagesInfo class may not have all the information yet, in that case we rely on the |
264 |
| - # requested stage. But if this function is called later again when it is fully set up, we have to use the |
265 |
| - # effective stage instead. |
266 |
| - # This is important so that the JMH parsing rule is only enabled when the stage actually ran (if it is |
267 |
| - # skipped, it would otherwise pick up a previous result file) |
268 |
| - if self.stages_info.is_set_up: |
269 |
| - current_stage = self.stages_info.effective_stage |
270 |
| - else: |
271 |
| - current_stage = self.stages_info.requested_stage |
272 |
| - |
273 |
| - if current_stage not in [Stage.AGENT, Stage.INSTRUMENT_RUN, Stage.RUN]: |
274 |
| - return None |
275 |
| - |
| 262 | + if self.is_native_mode(bm_suite_args) and not self.stages_info.fallback_mode and self.stages_info.current_stage.is_image(): |
| 263 | + return None |
276 | 264 | return super().get_jmh_result_file(bm_suite_args)
|
277 | 265 |
|
278 | 266 | def fallback_mode_reason(self, bm_suite_args: List[str]) -> Optional[str]:
|
|
0 commit comments