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.
1 parent bf15570 commit 219670eCopy full SHA for 219670e
1 file changed
Lib/profile/sample.py
@@ -15,8 +15,9 @@ def __init__(self, pid, sample_interval_usec, all_threads):
15
self.pid = pid
16
self.sample_interval_usec = sample_interval_usec
17
self.all_threads = all_threads
18
+ only_active_threads = bool(self.all_threads)
19
self.unwinder = _remote_debugging.RemoteUnwinder(
- self.pid, all_threads=self.all_threads
20
+ self.pid, only_active_thread=only_active_threads
21
)
22
# Track sample intervals and total sample count
23
self.sample_intervals = deque(maxlen=100)
0 commit comments