You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/library/profiling.sampling.rst
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -387,8 +387,11 @@ This requires one of:
387
387
On Windows, the profiler requires administrative privileges or the
388
388
``SeDebugPrivilege`` privilege to read another process's memory.
389
389
390
-
*Note*: Running ``profiling.sampling`` from a virtual environment on the Windows platform is not supported. It should be run from the global Python installation.
391
-
390
+
*Note*: On Windows, ``python -m profiling.sampling`` fails inside a virtual
391
+
environment because the venv's ``python.exe`` is just a launcher shim that
392
+
re-executes the base interpreter as a child process. The shim itself isn't
393
+
a Python process and has no ``PyRuntime`` section to attach to. Instead,
0 commit comments