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

Function wait_for_process_timeout

deps/v8/tools/profiling/linux-perf-d8.py:215–225  ·  view source on GitHub ↗
(process)

Source from the content-addressed store, hash-verified

213 log("LINUX PERF CMD: ", shlex.join(cmd))
214
215 def wait_for_process_timeout(process):
216 delta = timedelta(seconds=options.timeout)
217 start_time = datetime.now()
218 while True:
219 if (datetime.now() - start_time) >= delta:
220 return False
221 processHasStopped = process.poll() is not None
222 if processHasStopped:
223 return True
224 time.sleep(0.1)
225 return False
226
227 if options.timeout is None:
228 try:

Callers 1

mainFunction · 0.70

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…