HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/numpy/f2py/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/numpy/f2py/__pycache__/f2py_testing.cpython-36.pyc
3

���h��@s6ddlZddlZddlmZmZdd�Zddd�ZdS)	�N)�jiffies�memusagecCsZtjd�}g}d}x4tjdd�D]"}|j|�r:t|�}q"|j|�q"Wdj|�}||fS)Nz\A\d+\Z�� )�re�compile�sys�argv�match�eval�append�join)�m�args�repeat�aZ	f2py_opts�r�8/tmp/pip-build-5_djhm0z/numpy/numpy/f2py/f2py_testing.py�cmdlines



rrcCs�dd�|D�}t�}d}t�}d}xv||kr�|d7}x`|D]X\}}	||�|dkrTq:|dkrht�|}q:t�|}
|
|kr:td||
||	�|
}q:Wq$Wt�}td|t|�ddt�|d	�|r�td
|d�td|d�dS)
NcSs(g|] }|t|jjd�dj��f�qS)�
r)�repr�__doc__�split�strip)�.0�trrr�
<listcomp>szrun.<locals>.<listcomp>rrzmemory usage change at step %i:�run�testszin %.2f secondsgY@zinitial virtual memory size:�byteszcurrent virtual memory size:)rr�print�len)ZruntestZtest_functionsr�lZstart_memusageZ
diff_memusageZ
start_jiffies�ir�fnameZdiff_memusage2Zcurrent_memusagerrrrs2

r)r)rrZ
numpy.testingrrrrrrrr�<module>s