Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/memory_watchdog.cpython-311.pyc |
�
�Ke[ � � � d Z ddlZddlZddlZ ej d� � Zn.# eef$ r$ ej d� � Zn# eef$ r dZY nw xY wY nw xY w ej � d� � ej �
� � Z ee�
� � d � � Zej � d� eez d z �
� � � � ej � � � ej d� � ��)zpMemory watchdog: periodically read the memory usage of the main test process
and print it out, until terminated.� N�SC_PAGESIZE�SC_PAGE_SIZEi T� 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>r sN ��'� '�
� � � �
�
�
�
� �������
�=�)�)�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