mirror of
https://github.com/python/cpython.git
synced 2026-05-04 01:20:58 +00:00
[3.13] gh-132553: Build the perf tool without buildid cache (GH-132663) (GH-132681)
(cherry picked from commit e01e582902)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
b78728210c
commit
b3d4980c56
1 changed files with 14 additions and 1 deletions
|
|
@ -252,6 +252,8 @@ def perf_command_works():
|
|||
cmd = (
|
||||
"perf",
|
||||
"record",
|
||||
"--no-buildid",
|
||||
"--no-buildid-cache",
|
||||
"-g",
|
||||
"--call-graph=fp",
|
||||
"-o",
|
||||
|
|
@ -281,11 +283,22 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
|
|||
env = None
|
||||
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue