Skip to content

Commit 138c857

Browse files
committed
Run benchmark once before tracking memory to generate pyc files
1 parent e43059a commit 138c857

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mx.graalpython/live_heap_tracker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def main():
8080
iterations = int(sys.argv[2])
8181
jmap_binary = sys.argv[3]
8282
benchmark = sys.argv[4:]
83+
# Run the benchmark once to ensure pyc files are generated
84+
subprocess.check_call(benchmark)
8385
with open(output_file, 'w') as f:
8486
for _ in range(iterations):
8587
proc = subprocess.Popen(benchmark)

0 commit comments

Comments
 (0)