We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532373d commit 696523cCopy full SHA for 696523c
1 file changed
benchmark/benchmark_helper.py
@@ -1,8 +1,9 @@
1
import subprocess
2
import os
3
-import shutil
+#import shutil
4
import sys
5
import time
6
+import tempfile
7
8
9
class BenchmarkEnv():
@@ -12,14 +13,9 @@ def __init__(self, repetitions=10):
12
13
self.env["SCOREP_ENABLE_TRACING"] = "false"
14
self.env["SCOREP_PROFILING_MAX_CALLPATH_DEPTH"] = "98"
15
self.env["SCOREP_TOTAL_MEMORY"] = "3G"
- self.exp_dir = "benchmark_dir"
16
+ self.exp_dir = tempfile.mkdtemp(prefix="benchmark_dir_")
17
self.repetitions = repetitions
18
- shutil.rmtree(
19
- self.exp_dir,
20
- ignore_errors=True)
21
- os.mkdir(self.exp_dir)
22
-
23
def __del__(self):
24
pass
25
# shutil.rmtree(
0 commit comments