Skip to content

Commit b3d4980

Browse files
[3.13] gh-132553: Build the perf tool without buildid cache (GH-132663) (GH-132681)
(cherry picked from commit e01e582) Co-authored-by: Pablo Galindo Salgado <[email protected]>
1 parent b787282 commit b3d4980

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
@@ -252,6 +252,8 @@ def perf_command_works():
252252
cmd = (
253253
"perf",
254254
"record",
255+
"--no-buildid",
256+
"--no-buildid-cache",
255257
"-g",
256258
"--call-graph=fp",
257259
"-o",
@@ -281,11 +283,22 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
281283
env = None
282284
output_file = cwd + "/perf_output.perf"
283285
if not use_jit:
284-
base_cmd = ("perf", "record", "-g", "--call-graph=fp", "-o", output_file, "--")
286+
base_cmd = (
287+
"perf",
288+
"record",
289+
"--no-buildid",
290+
"--no-buildid-cache",
291+
"-g",
292+
"--call-graph=fp",
293+
"-o", output_file,
294+
"--"
295+
)
285296
else:
286297
base_cmd = (
287298
"perf",
288299
"record",
300+
"--no-buildid",
301+
"--no-buildid-cache",
289302
"-g",
290303
"--call-graph=dwarf,65528",
291304
"-F99",

0 commit comments

Comments
 (0)