Skip to content

Commit 50e8215

Browse files
author
Maja Skoko
committed
Print binary size when using bundles.
1 parent 5fea0e4 commit 50e8215

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vm/mx.vm/mx_vm_benchmark.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,8 @@ def run_stage_instrument_run(self, config, stages, image_path, profile_path):
970970
def _print_binary_size(self, config, out):
971971
# The image size for benchmarks is tracked by printing on stdout and matching the rule.
972972
image_path = os.path.join(config.output_dir, config.final_image_name)
973+
if config.bundle_create_path is not None:
974+
image_path = os.path.join(config.output_dir, config.bundle_create_path[:-len("reports")], config.bundle_create_path.split(".")[0])
973975
image_size = os.stat(image_path).st_size
974976
out(f'The executed image size for benchmark {config.benchmark_suite_name}:{config.benchmark_name} is {image_size} B')
975977

0 commit comments

Comments
 (0)