From 8ed8b71bf1e0e9226cefc369e019b0da248322a7 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Fri, 18 Apr 2025 13:26:59 +0100 Subject: [PATCH] gh-132553: Build the perf tool without buildid cache (GH-132663) (cherry picked from commit e01e5829020e517eb68a47da4dd65926a9d144de) --- 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 fe8707a156e9dc..b380e496a2d3cb 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,