Collect profiling data from stack frames. Args: stack_frames: List of InterpreterInfo objects timestamps_us: Optional list of timestamps in microseconds. If provided (from binary replay with RLE batching), use these instead of current
(self, stack_frames, timestamps_us=None)
| 65 | class Collector(ABC): |
| 66 | @abstractmethod |
| 67 | def collect(self, stack_frames, timestamps_us=None): |
| 68 | """Collect profiling data from stack frames. |
| 69 | |
| 70 | Args: |
| 71 | stack_frames: List of InterpreterInfo objects |
| 72 | timestamps_us: Optional list of timestamps in microseconds. If provided |
| 73 | (from binary replay with RLE batching), use these instead of current |
| 74 | time. If None, collectors should use time.monotonic() or similar. |
| 75 | The list may contain multiple timestamps when samples are batched |
| 76 | together (same stack, different times). |
| 77 | """ |
| 78 | |
| 79 | def collect_failed_sample(self): |
| 80 | """Collect data about a failed sample attempt.""" |
no outgoing calls
no test coverage detected