]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132553: Build the perf tool without buildid cache (GH-132663)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Fri, 18 Apr 2025 12:26:59 +0000 (13:26 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 12:26:59 +0000 (14:26 +0200)
Lib/test/test_perf_profiler.py

index 1922d8e0bab2165022d0f9382e17f42da714c67f..c176e505155b9054103f340e470fb1f828b9c3e7 100644 (file)
@@ -260,6 +260,8 @@ def perf_command_works():
             cmd = (
                 "perf",
                 "record",
+                "--no-buildid",
+                "--no-buildid-cache",
                 "-g",
                 "--call-graph=fp",
                 "-o",
@@ -289,11 +291,22 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
     env["PYTHON_JIT"] = "0"
     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",