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

Function _get_child_monitor_context

Lib/profiling/sampling/cli.py:125–128  ·  view source on GitHub ↗
(args, pid)

Source from the content-addressed store, hash-verified

123
124
125def _get_child_monitor_context(args, pid):
126 if getattr(args, 'subprocesses', False):
127 return _setup_child_monitor(args, pid)
128 return nullcontext()
129
130
131def _build_child_profiler_args(args):

Callers 2

_handle_attachFunction · 0.85
_handle_runFunction · 0.85

Calls 2

nullcontextClass · 0.90
_setup_child_monitorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…