Skip to content

Commit 69c15fb

Browse files
committed
fix: remove output dir option
1 parent 51a20c9 commit 69c15fb

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

bench/bench.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def __init__(
2525
self,
2626
cmd: str,
2727
valgrind_path: str = "valgrind",
28-
output_dir: str = "/tmp",
2928
):
3029
"""Initialize valgrind runner.
3130
@@ -36,8 +35,6 @@ def __init__(
3635
"""
3736
self.cmd = cmd
3837
self.valgrind_path = valgrind_path
39-
self.output_dir = Path(output_dir)
40-
self.output_dir.mkdir(parents=True, exist_ok=True)
4138

4239
# Verify valgrind is available
4340
result = subprocess.run(
@@ -55,12 +52,10 @@ def run_valgrind(self, *args: str) -> None:
5552
Args:
5653
*args: Valgrind arguments
5754
"""
58-
callgrind_output = self.output_dir / f"callgrind.{os.getpid()}.{time.time_ns()}"
5955

6056
cmd = [
6157
self.valgrind_path,
6258
"--tool=callgrind",
63-
f"--callgrind-out-file={callgrind_output}",
6459
*args,
6560
*shlex.split(self.cmd),
6661
]
@@ -173,20 +168,12 @@ def main():
173168
default="valgrind",
174169
help="Path to valgrind executable (default: valgrind)",
175170
)
176-
parser.add_argument(
177-
"--output-dir",
178-
type=str,
179-
default="/tmp",
180-
help="Directory for callgrind files (default: /tmp)",
181-
)
182-
183171
args = parser.parse_args()
184172

185173
# Create runner instance
186174
runner = ValgrindRunner(
187175
cmd=args.cmd,
188176
valgrind_path=args.valgrind_path,
189-
output_dir=args.output_dir,
190177
)
191178
print(f"Valgrind version: {runner.valgrind_version}")
192179
print(f"Command: {args.cmd}")

0 commit comments

Comments
 (0)