File: //usr/local/lib/python3.7/test/__pycache__/memory_watchdog.cpython-37.pyc
B
��g[ � @ s� d Z ddlZddlZddlZye�d�ZW nD eefk
rn ye�d�ZW n eefk
rh dZY nX Y nX xZej� d� ej�
� Zee�
� d �Zej�djee d d �� ej�� e�d
� qrW dS )zpMemory watchdog: periodically read the memory usage of the main test process
and print it out, until terminated.� N�SC_PAGESIZE�SC_PAGE_SIZEi � z$ ... process data size: {data:.1f}G
i @)�data� )�__doc__�os�sysZtime�sysconfZ page_size�
ValueError�AttributeError�stdin�seek�readZstatm�int�splitr �stdout�write�format�flushZsleep� r r �0/usr/local/lib/python3.7/test/memory_watchdog.py�<module> s$