We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
profiling.sampling
1 parent 0851700 commit 0f32750Copy full SHA for 0f32750
1 file changed
Doc/library/profiling.sampling.rst
@@ -387,6 +387,11 @@ This requires one of:
387
On Windows, the profiler requires administrative privileges or the
388
``SeDebugPrivilege`` privilege to read another process's memory.
389
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.
395
396
Version compatibility
397
---------------------
0 commit comments