Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/numpy/f2py/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/numpy/f2py/__pycache__/f2py_testing.cpython-35.pyc



(��^��@siddlmZmZmZddlZddlZddlmZmZdd�Z	ddd�Z
dS)	�)�division�absolute_import�print_functionN)�jiffies�memusagecCs}tjd�}g}d}xFtjdd�D]1}|j|�rSt|�}q/|j|�q/Wdj|�}||fS)Nz\A\d+\Z�� )�re�compile�sys�argv�match�eval�append�join)�m�args�repeat�a�	f2py_opts�r�J/opt/alt/python35/lib64/python3.5/site-packages/numpy/f2py/f2py_testing.py�cmdline	srrcCs0dd�|D�}t�}d}t�}d}x�||kr�|d7}x�|D]x\}}	||�|dkrvqQ|dkr�t�|}qQt�|}
|
|krQtd||
||	�|
}qQWq4Wt�}td|t|�ddt�|d	�|r,td
|d�td|d�dS)
NcSs8g|].}|t|jjd�dj��f�qS)�
r)�repr�__doc__�split�strip)�.0�trrr�
<listcomp>s	zrun.<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_memusagerrrr!s2		



	r!)�
__future__rrrrr	Znumpy.testing.utilsrrrr!rrrr�<module>s