[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 e01e582902)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
Victor Stinner 2025-04-25 03:26:30 +02:00 committed by GitHub
parent 95d9dea1c4
commit aeb3a6f61a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,6 +238,8 @@ def perf_command_works():
cmd = (
"perf",
"record",
"--no-buildid",
"--no-buildid-cache",
"-g",
"--call-graph=fp",
"-o",
@ -266,7 +268,16 @@ def run_perf(cwd, *args, **env_vars):
else:
env = None
output_file = cwd + "/perf_output.perf"
base_cmd = ("perf", "record", "-g", "--call-graph=fp", "-o", output_file, "--")
base_cmd = (
"perf",
"record",
"--no-buildid",
"--no-buildid-cache",
"-g",
"--call-graph=fp",
"-o", output_file,
"--"
)
proc = subprocess.run(
base_cmd + args,
stdout=subprocess.PIPE,