MCPcopy Index your code
hub / github.com/python/cpython / collect

Method collect

Lib/profiling/sampling/stack_collector.py:22–25  ·  view source on GitHub ↗
(self, stack_frames, timestamps_us=None)

Source from the content-addressed store, hash-verified

20 self.skip_idle = skip_idle
21
22 def collect(self, stack_frames, timestamps_us=None):
23 weight = len(timestamps_us) if timestamps_us else 1
24 for frames, thread_id in self._iter_stacks(stack_frames, skip_idle=self.skip_idle):
25 self.process_frames(frames, thread_id, weight=weight)
26
27 def process_frames(self, frames, thread_id, weight=1):
28 pass

Callers 1

collectMethod · 0.45

Calls 2

process_framesMethod · 0.95
_iter_stacksMethod · 0.80

Tested by

no test coverage detected