mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[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:
parent
95d9dea1c4
commit
aeb3a6f61a
1 changed files with 12 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue