
    daf                        d Z ddlZddlZddlmZ 	  e       Zej                  j                  d       ej                  j                         Z	 e
e	j                         d         Zej                  j                  dj                  eez  dz               ej                  j!                           ej"                  d       )	zpMemory watchdog: periodically read the memory usage of the main test process
and print it out, until terminated.    N)get_pagesize   z$ ... process data size: {data:.1f}G
i   @)data   )__doc__systimetest.supportr   	page_sizestdinseekreadstatmintsplitr   stdoutwriteformatflushsleep     //root/Python-3.12.4/Lib/test/memory_watchdog.py<module>r      s   '   % IIINN1IINNEu{{}Q DJJ<f$"2i"@fACJJDJJqM r   