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 09f5205 commit dc7abaeCopy full SHA for dc7abae
1 file changed
Lib/profiling/sampling/collector.py
@@ -1,11 +1,16 @@
1
from abc import ABC, abstractmethod
2
+from collections import deque
3
from .constants import (
4
THREAD_STATUS_HAS_GIL,
5
THREAD_STATUS_ON_CPU,
- THREAD_STATUS_UNKNOWN,
6
- THREAD_STATUS_GIL_REQUESTED,
7
)
8
+try:
9
+ from _remote_debugging import FrameInfo
10
+except ImportError:
11
+ # Fallback definition if _remote_debugging is not available
12
+ FrameInfo = None
13
+
14
class Collector(ABC):
15
@abstractmethod
16
def collect(self, stack_frames):
0 commit comments