AlkantarClanX12
Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/ |
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/tracemalloc.cpython-35.pyc |
��Yf= � @ s` d d l m Z m Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Td d l m Z m Z d d � Z Gd d � d � Z Gd d � d � Z d d � Z e Gd d � d � � Z e Gd d � d e � � Z d d � Z Gd d � d � Z Gd d � d e � Z d d � Z Gd d � d � Z Gd d � d � Z d d � Z d S) � )�Sequence�Iterable)�total_orderingN)�*)�_get_object_traceback�_get_tracesc C s� x� d D]� } t | � d k rM | d k rM | r? d | | f Sd | | f St | � d k sk | d k r� | r d | | f Sd | | f S| d } q Wd S)N�B�KiB�MiB�GiB�TiB�d z%+.1f %sz%.1f %s� i z%+.0f %sz%.0f %s)r r r r r i ( )�abs)�sizeZsignZunit� r �0/opt/alt/python35/lib64/python3.5/tracemalloc.py�_format_size s r c @ sd e Z d Z d Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)� StatisticzS Statistic difference on memory allocations between two Snapshot instance. � tracebackr �countc C s | | _ | | _ | | _ d S)N)r r r )�selfr r r r r r �__init__% s zStatistic.__init__c C s t | j | j | j f � S)N)�hashr r r )r r r r �__hash__* s zStatistic.__hash__c C s4 | j | j k o3 | j | j k o3 | j | j k S)N)r r r )r �otherr r r �__eq__- s zStatistic.__eq__c C sY d | j t | j d � | j f } | j rU | j | j } | d t | d � 7} | S)Nz%s: size=%s, count=%iFz, average=%s)r r r r )r �text�averager r r �__str__2 s zStatistic.__str__c C s d | j | j | j f S)Nz)<Statistic traceback=%r size=%i count=%i>)r r r )r r r r �__repr__<