Skip to content

Commit 219670e

Browse files
committed
Use the new gil sampling
1 parent bf15570 commit 219670e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/profile/sample.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ def __init__(self, pid, sample_interval_usec, all_threads):
1515
self.pid = pid
1616
self.sample_interval_usec = sample_interval_usec
1717
self.all_threads = all_threads
18+
only_active_threads = bool(self.all_threads)
1819
self.unwinder = _remote_debugging.RemoteUnwinder(
19-
self.pid, all_threads=self.all_threads
20+
self.pid, only_active_thread=only_active_threads
2021
)
2122
# Track sample intervals and total sample count
2223
self.sample_intervals = deque(maxlen=100)

0 commit comments

Comments
 (0)