Skip to content

Commit 5bb01d0

Browse files
author
Maja Skoko
committed
Print binary size when using bundles.
1 parent 6f5060e commit 5bb01d0

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
@@ -952,6 +952,8 @@ def run_stage_instrument_run(self, config, stages, image_path, profile_path):
952952
def _print_binary_size(self, config, out):
953953
# The image size for benchmarks is tracked by printing on stdout and matching the rule.
954954
image_path = os.path.join(config.output_dir, config.final_image_name)
955+
if config.bundle_create_path is not None:
956+
image_path = os.path.join(config.output_dir, config.bundle_create_path[:-len("reports")], config.bundle_create_path.split(".")[0])
955957
image_size = os.stat(image_path).st_size
956958
out(f'The executed image size for benchmark {config.benchmark_suite_name}:{config.benchmark_name} is {image_size} B')
957959

0 commit comments

Comments
 (0)