From aeb3a6f61af53ed3fbf31f0b3704f49b71ac553c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 Apr 2025 03:26:30 +0200 Subject: [PATCH] [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 e01e5829020e517eb68a47da4dd65926a9d144de) Co-authored-by: Pablo Galindo Salgado --- Lib/test/test_perf_profiler.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_perf_profiler.py b/Lib/test/test_perf_profiler.py index fe8707a156e9..b380e496a2d3 100644 --- a/Lib/test/test_perf_profiler.py +++ b/Lib/test/test_perf_profiler.py @@ -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, -- 2.47.3