File: //opt/cppython/lib/python3.8/test/__pycache__/memory_watchdog.cpython-38.pyc
U
-D�g[ � @ s� d Z ddlZddlZddlZze�d�ZW nD eefk
rn ze�d�ZW n eefk
rh dZY nX Y nX ej� d� ej�
� Zee�
� d �Zej�djee d d �� ej�� e�d
� qpdS )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�sys�time�sysconfZ page_size�
ValueError�AttributeError�stdin�seek�readZstatm�int�splitr �stdout�write�format�flush�sleep� r r �3/opt/cppython/lib/python3.8/test/memory_watchdog.py�<module> s$
�