We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8861b11 commit 3da9775Copy full SHA for 3da9775
vtr_flow/scripts/run_vtr_flow.py
@@ -488,9 +488,14 @@ def vtr_command_main(arg_list, prog=None):
488
489
finally:
490
seconds = datetime.now() - start
491
+ with open(temp_dir/"vpr.out","r") as fpmem:
492
+ for line in fpmem.readlines():
493
+ if "Maximum resident set size" in line:
494
+ mem_usage = int(line.split()[-1])//1024
495
print(
- "{status} (took {time})".format(
- status=error_status, time=vtr.format_elapsed_time(seconds)
496
+ "{status} (took {time}, vpr run consumed {max_mem} MB memory)".format(
497
+ status=error_status, time=vtr.format_elapsed_time(seconds),
498
+ max_mem=mem_usage
499
)
500
501
temp_dir.mkdir(parents=True, exist_ok=True)
0 commit comments