Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/memory_watchdog.cpython-311.pyc
�

�Ke[���dZddlZddlZddlZ	ejd��Zn.#eef$r$	ejd��Zn#eef$rdZYnwxYwYnwxYw	ej�	d��ej�
��Zee�
��d��Zej�d�eezd	z�
����ej���ejd����)zpMemory watchdog: periodically read the memory usage of the main test process
and print it out, until terminated.�N�SC_PAGESIZE�SC_PAGE_SIZEiT�z$ ... process data size: {data:.1f}G
i@)�data�)�__doc__�os�sys�time�sysconf�	page_size�
ValueError�AttributeError�stdin�seek�read�statm�int�splitr�stdout�write�format�flush�sleep���>/usr/local/apps/python3/lib/python3.11/test/memory_watchdog.py�<module>rsN��'�'�
�	�	�	�
�
�
�
��������
�=�)�)�I�I���N�#������B�J�~�.�.�	�	����'�����	�	�	�������������I�N�N�1�����I�N�N���E��3�u�{�{�}�}�Q�� � �D��J���<��f�$��"2�i�"@�f�A�A�C�C�C��J�������D�J�q�M�M�M�s/�!�A�:�A�	A�A�A�A�A