MCPcopy Index your code
hub / github.com/python/cpython / memory_watchdog.py

File memory_watchdog.py

Lib/test/memory_watchdog.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Memory watchdog: periodically read the memory usage of the main test process
2and print it out, until terminated."""
3# stdin should refer to the process' /proc/<PID>/statm: we don't pass the
4# process' PID to avoid a race condition in case of - unlikely - PID recycling.

Callers

nothing calls this directly

Calls 8

get_pagesizeFunction · 0.90
seekMethod · 0.45
readMethod · 0.45
splitMethod · 0.45
writeMethod · 0.45
formatMethod · 0.45
flushMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected