Skip to content

Commit 3007c69

Browse files
committed
Address PR Comments
1 parent d88deb0 commit 3007c69

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Doc/library/profiling.sampling.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,11 @@ This requires one of:
387387
On Windows, the profiler requires administrative privileges or the
388388
``SeDebugPrivilege`` privilege to read another process's memory.
389389

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,
394+
run it from the global Python installation.
392395

393396
Version compatibility
394397
---------------------

0 commit comments

Comments
 (0)