File: //lib64/python3.6/test/__pycache__/memory_watchdog.cpython-36.pyc
3
\[ � @ s� d Z ddlZddlZddlZyejd�ZW nD eefk
rn yejd�ZW n eefk
rh dZY nX Y nX xZejj d� ejj
� Zeej
� d �Zejjdjee d d
�� ejj� ejd� 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� i @)�__doc__�os�sysZtime�sysconfZ page_size�
ValueError�AttributeError�stdin�seek�readZstatm�int�splitr �stdout�write�format�flushZsleep� r r �'/usr/lib64/python3.6/memory_watchdog.py�<module> s$