Your IP : 3.149.238.67
a
R�f�r � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ ddlm
Z
g d�ZG dd � d ee�Zed
d�G dd
� d
��Zed
d�G dd� d��ZG dd� d�ZG dd� d�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zed"k�r�ddlZzddlZW n e�y, Y n0 G d#d$� d$ej �Z!e"ej#�d%k�r\ej#d% Z$ndZ$zPe!e$�Z%ej#d&d� D ]Z&e%�'e&� �qxe(d'e%j)d(� e%�*� e(d)e%j)d(� W n e+�y� Y n0 dS )*z3Class for printing reports on profiled python code.� N)�Enum)�
cmp_to_key)� dataclass)�Dict)�Stats�SortKey�FunctionProfile�StatsProfilec @ s8 e Zd ZdZdZdZdZdZdZdZ dZ
d Zd
d� ZdS )
r )�calls�ncalls)�
cumulative�cumtime)�filename�module�line�name�nfl�pcalls�stdname)�time�tottimec G s@ |d }t �| |�}||_|dd � D ]}|| j|<