gh-148932: Docs / `profiling.sampling` Windows limitations (GH-150272)
(cherry picked from commit
0f32750fe26428de5e439803cf57f51847c81ce8)
Co-authored-by: Eduardo Villalpando Mello <eduardo.villalpando.mello@gmail.com>
On Windows, the profiler requires administrative privileges or the
``SeDebugPrivilege`` privilege to read another process's memory.
+*Note*: On Windows, ``python -m profiling.sampling`` fails inside a virtual
+environment because the venv's ``python.exe`` is just a launcher shim that
+re-executes the base interpreter as a child process. The shim itself isn't
+a Python process and has no ``PyRuntime`` section to attach to. Instead,
+run it from the global Python installation.
Version compatibility
---------------------