Skip to content

Commit aeb3a6f

Browse files
vstinnerpablogsal
andauthored
[3.12] gh-132553: Build the perf tool without buildid cache (GH-132663) (#132718)
gh-132553: Build the perf tool without buildid cache (GH-132663) (cherry picked from commit e01e582) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
1 parent 95d9dea commit aeb3a6f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Lib/test/test_perf_profiler.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ def perf_command_works():
238238
cmd = (
239239
"perf",
240240
"record",
241+
"--no-buildid",
242+
"--no-buildid-cache",
241243
"-g",
242244
"--call-graph=fp",
243245
"-o",
@@ -266,7 +268,16 @@ def run_perf(cwd, *args, **env_vars):
266268
else:
267269
env = None
268270
output_file = cwd + "/perf_output.perf"
269-
base_cmd = ("perf", "record", "-g", "--call-graph=fp", "-o", output_file, "--")
271+
base_cmd = (
272+
"perf",
273+
"record",
274+
"--no-buildid",
275+
"--no-buildid-cache",
276+
"-g",
277+
"--call-graph=fp",
278+
"-o", output_file,
279+
"--"
280+
)
270281
proc = subprocess.run(
271282
base_cmd + args,
272283
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)