MCPcopy Index your code
hub / github.com/RustPython/RustPython / start

Method start

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

Source from the content-addressed store, hash-verified

1166 self.started = False
1167
1168 def start(self):
1169 import warnings
1170 try:
1171 f = open(self.procfile, 'r')
1172 except OSError as e:
1173 logging.getLogger(__name__).warning('/proc not available for stats: %s', e, exc_info=e)
1174 sys.stderr.flush()
1175 return
1176
1177 import subprocess
1178 with f:
1179 watchdog_script = findfile("memory_watchdog.py")
1180 self.mem_watchdog = subprocess.Popen([sys.executable, watchdog_script],
1181 stdin=f,
1182 stderr=subprocess.DEVNULL)
1183 self.started = True
1184
1185 def stop(self):
1186 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