mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-132553: Build the perf tool without buildid cache (GH-132663)
This commit is contained in:
parent
7e2672cfcf
commit
e01e582902
1 changed files with 14 additions and 1 deletions
|
@ -260,6 +260,8 @@ def perf_command_works():
|
||||||
cmd = (
|
cmd = (
|
||||||
"perf",
|
"perf",
|
||||||
"record",
|
"record",
|
||||||
|
"--no-buildid",
|
||||||
|
"--no-buildid-cache",
|
||||||
"-g",
|
"-g",
|
||||||
"--call-graph=fp",
|
"--call-graph=fp",
|
||||||
"-o",
|
"-o",
|
||||||
|
@ -289,11 +291,22 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
|
||||||
env["PYTHON_JIT"] = "0"
|
env["PYTHON_JIT"] = "0"
|
||||||
output_file = cwd + "/perf_output.perf"
|
output_file = cwd + "/perf_output.perf"
|
||||||
if not use_jit:
|
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:
|
else:
|
||||||
base_cmd = (
|
base_cmd = (
|
||||||
"perf",
|
"perf",
|
||||||
"record",
|
"record",
|
||||||
|
"--no-buildid",
|
||||||
|
"--no-buildid-cache",
|
||||||
"-g",
|
"-g",
|
||||||
"--call-graph=dwarf,65528",
|
"--call-graph=dwarf,65528",
|
||||||
"-F99",
|
"-F99",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue