AlkantarClanX12
Current Path : /opt/alt/python34/lib64/python3.4/__pycache__/ |
Current File : //opt/alt/python34/lib64/python3.4/__pycache__/tracemalloc.cpython-34.pyo |
� i f#= � @ 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 rP | d k rP | r? d | | f Sd | | f Sn t | � d k sn | d k r� | r� d | | f Sd | | f Sn | 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/python34/lib64/python3.4/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 s\ d | j t | j d � | j f } | j rX | j | j } | d t | d � 7} n | 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__<