]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-132553: Build the perf tool without buildid cache (GH-132663) (GH-132681)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 Apr 2025 12:51:02 +0000 (14:51 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 12:51:02 +0000 (12:51 +0000)
(cherry picked from commit e01e5829020e517eb68a47da4dd65926a9d144de)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Lib/test/test_perf_profiler.py

index 778d4db65b14c593f685205799f5e8f5bec82246..03a4563dd924aad5651ee36a7787c836f2c285a2 100644 (file)
@@ -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",