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

Method _find_leaf_tasks

Lib/profiling/sampling/collector.py:154–156  ·  view source on GitHub ↗
(self, all_task_ids, all_parent_ids)

Source from the content-addressed store, hash-verified

152 return task_map, child_to_parent, all_task_ids, all_parent_ids
153
154 def _find_leaf_tasks(self, all_task_ids, all_parent_ids):
155 # Leaves are tasks that are not parents of any other task
156 return all_task_ids - all_parent_ids
157
158 def _build_linear_stacks(self, leaf_task_ids, task_map, child_to_parent):
159 for leaf_id in leaf_task_ids:

Callers 1

_iter_async_framesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected