B
    u9a[                 @   s   d Z ddlZddlZddlZyedZW nD eefk
rn   yedZW n eefk
rh   dZY nX Y nX xZej	d ej
 Zee d Zejdjee d d	 ej  ed
 qrW dS )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sysZtimesysconfZ	page_size
ValueErrorAttributeErrorstdinseekreadZstatmintsplitr   stdoutwriteformatflushZsleep r   r   %/usr/lib/python3.7/memory_watchdog.py<module>   s$   


