Skip to content

Commit deb4711

Browse files
committed
Address PR Comments
1 parent 7f5f450 commit deb4711

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/profiling/sampling/sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _pause_threads(unwinder, blocking):
5151
MAX_PENDING_SAMPLES = 8192
5252

5353

54-
def _resolve_venv_child_pid(pid):
54+
def _resolve_python_pid(pid):
5555
"""On Windows, if pid is a venvlauncher process, return the child Python PID.
5656
5757
The venvlauncher (used as python.exe in venvs) spawns the real Python
@@ -81,7 +81,7 @@ def _resolve_venv_child_pid(pid):
8181

8282
class SampleProfiler:
8383
def __init__(self, pid, sample_interval_usec, all_threads, *, mode=PROFILING_MODE_WALL, native=False, gc=True, opcodes=False, skip_non_matching_threads=True, collect_stats=False, blocking=False):
84-
self.pid = _resolve_venv_child_pid(pid)
84+
self.pid = _resolve_python_pid(pid)
8585
self.sample_interval_usec = sample_interval_usec
8686
self.all_threads = all_threads
8787
self.mode = mode # Store mode for later use

0 commit comments

Comments
 (0)