https://github.com/python/cpython/commit/aeb3a6f61af53ed3fbf31f0b3704f49b71ac553c
commit: aeb3a6f61af53ed3fbf31f0b3704f49b71ac553c
branch: 3.12
author: Victor Stinner <vstin...@python.org>
committer: pablogsal <pablog...@gmail.com>
date: 2025-04-25T02:26:30+01:00
summary:

[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 <pablog...@gmail.com>

files:
M Lib/test/test_perf_profiler.py

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,

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to