Skip to content

Commit d7e4fec

Browse files
aaupovMatzeB
andcommitted
Apply suggestion from @MatzeB
Co-authored-by: Matthias Braun <[email protected]>
1 parent 29025b6 commit d7e4fec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/utils/perf-training/perf-helper.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ def perf2prof(args):
153153
profgen_args = [opts.profgen, f"--binary={opts.binary}"]
154154
for path in opts.paths:
155155
for filename in findFilesWithExtension(path, "perf.data"):
156-
subprocess.check_call(
157-
profgen_args
158-
+ [f"--perfdata={filename}", f"--output={filename}.profraw"]
159-
)
156+
subprocess.run([*profgen_args, f"--perfdata={filename}", f"--output={filename}.profraw"], check=True)
160157
return 0
161158

162159

0 commit comments

Comments
 (0)