8000 gh-132553: Build the perf tool without buildid cache (GH-132663) · python/cpython@e01e582 · GitHub
[go: up one dir, main page]

Skip to content

Commit e01e582

Browse files
authored
gh-132553: Build the perf tool without buildid cache (GH-132663)
1 parent 7e2672c commit e01e582

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Lib/test/test_perf_profiler.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def perf_command_works():
260260
cmd = (
261261
"perf",
262262
"record",
263+
"--no-buildid",
264+
"--no-buildid-cache",
263265
"-g",
264266
"--call-graph=fp",
265267
"-o",
@@ -289,11 +291,22 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
289291
env["PYTHON_JIT"] = "0"
290292
output_file = cwd + "/perf_output.perf"
291293
if not use_jit:
292-
base_cmd = ("perf", "record", "-g", "--call-graph=fp", "-o", output_file, "--")
294+
base_cmd = (
295+
"perf",
296+
"record",
297+
"--no-buildid",
298+
"--no-buildid-cache",
299+
"-g",
300+
"--call-graph=fp",
301+
"-o", output_file,
302+
"--"
303+
)
293304
else:
294305
base_cmd = (
295306
"perf",
296307
"record",
308+
"--no-buildid",
309+
"--no-buildid-cache",
297310
"-g",
298311
"--call-graph=dwarf,65528",
299312
"-F99",

0 commit comments

Comments
 (0)
0