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

Method start

Lib/test/support/__init__.py:1247–1261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1245 self.started = False
1246
1247 def start(self):
1248 try:
1249 f = open(self.procfile, 'r')
1250 except OSError as e:
1251 logging.getLogger(__name__).warning('/proc not available for stats: %s', e, exc_info=e)
1252 sys.stderr.flush()
1253 return
1254
1255 import subprocess
1256 with f:
1257 watchdog_script = findfile("memory_watchdog.py")
1258 self.mem_watchdog = subprocess.Popen([sys.executable, watchdog_script],
1259 stdin=f,
1260 stderr=subprocess.DEVNULL)
1261 self.started = True
1262
1263 def stop(self):
1264 if self.started:

Callers 3

start_workersMethod · 0.45
start_threadsFunction · 0.45
wrapperFunction · 0.45

Calls 5

findfileFunction · 0.85
getLoggerMethod · 0.80
openFunction · 0.50
warningMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected