gh-132553: Build the perf tool without buildid cache (GH-132663)

This commit is contained in:
Pablo Galindo Salgado 2025-04-18 13:26:59 +01:00 committed by GitHub
parent 7e2672cfcf
commit e01e582902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -260,6 +260,8 @@ def perf_command_works():
cmd = (
"perf",
"record",
"--no-buildid",
"--no-buildid-cache",
"-g",
"--call-graph=fp",
"-o",
@ -289,11 +291,22 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
env["PYTHON_JIT"] = "0"
output_file = cwd + "/perf_output.perf"
if not use_jit:
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,
"--"
)
else:
base_cmd = (
"perf",
"record",
"--no-buildid",
"--no-buildid-cache",
"-g",
"--call-graph=dwarf,65528",
"-F99",