Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib64/python3.7/site-packages/numpy/f2py/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/numpy/f2py/__pycache__/f2py_testing.cpython-37.pyc

B

��Fd��@sJddlmZmZmZddlZddlZddlmZmZdd�Z	d	dd�Z
dS)
�)�division�absolute_import�print_functionN)�jiffies�memusagecCsZt�d�}g}d}x4tjdd�D]"}|�|�r:t|�}q"|�|�q"Wd�|�}||fS)Nz\A\d+\Z�� )�re�compile�sys�argv�match�eval�append�join)�m�args�repeat�a�	f2py_opts�r�J/opt/alt/python37/lib64/python3.7/site-packages/numpy/f2py/f2py_testing.py�cmdline	s



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|j�d�d���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_memusagerrrr!s2

r!)r)�
__future__rrrrr	Znumpy.testing.utilsrrrr!rrrr�<module>s