MCPcopy Index your code
hub / github.com/nodejs/node / wait_for_process_timeout

Function wait_for_process_timeout

deps/v8/tools/profiling/linux-perf-chrome.py:178–188  ·  view source on GitHub ↗
(process)

Source from the content-addressed store, hash-verified

176
177
178def wait_for_process_timeout(process):
179 delta = timedelta(seconds=options.timeout)
180 start_time = datetime.now()
181 while True:
182 if (datetime.now() - start_time) >= delta:
183 return False
184 processHasStopped = process.poll() is not None
185 if processHasStopped:
186 return True
187 time.sleep(0.5)
188 return False
189
190
191with tempfile.TemporaryDirectory(prefix="chrome-") as tmp_dir_path:

Callers 1

Calls 2

nowMethod · 0.80
sleepMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…