o
    GXh[                     @   s   d Z ddlZddlZddlZzedZW n  eefy5   zedZW n eefy2   dZY nw Y nw 	 ej	d ej
 Zee d Zejdjee d	 d
 ej  ed q7)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sysconfZ	page_size
ValueErrorAttributeErrorstdinseekreadZstatmintsplitr   stdoutwriteformatflushsleep r   r   >/opt/python-3.10.19/usr/lib/python3.10/test/memory_watchdog.py<module>   s0    


