Skip to content

Commit 5f2ffab

Browse files
committed
comment out sys._current_frames()[thread_id] call
1 parent a896a01 commit 5f2ffab

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

distributed/profile.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import bisect
3030
import dis
3131
import linecache
32-
import sys
3332
import threading
3433
import weakref
3534
from collections import defaultdict, deque
@@ -295,12 +294,12 @@ def _watch(
295294
log.append((time(), recent))
296295
recent = create()
297296
last = time()
298-
try:
299-
frame = sys._current_frames()[thread_id]
300-
except KeyError:
301-
return
297+
# try:
298+
# frame = sys._current_frames()[thread_id]
299+
# except KeyError:
300+
# return
302301

303-
process(frame, None, recent, omit=omit)
302+
# process(frame, None, recent, omit=omit)
304303
stop_event.wait(interval)
305304

306305

distributed/tests/test_spill.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ def _print_chain(o_wr):
342342
)
343343
@pytest.mark.parametrize("size", [60, 110])
344344
def test_weakref_cache(tmpdir, cls, expect_cached, size, attempt):
345-
from distributed.profile import shutdown_profile_threads
345+
# from distributed.profile import shutdown_profile_threads
346346

347-
shutdown_profile_threads()
347+
# shutdown_profile_threads()
348348

349349
gc.disable()
350350
try:

0 commit comments

Comments
 (0)