HEX
Server: Apache
System: Linux iad1-shared-b8-33 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: samfetchero1 (10301780)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/mercurial/utils/__pycache__/memorytop.cpython-310.pyc
o

�]Lb��@sddlZddlZddd�ZdS)�N�
c
Cst��t��}|�t�dd�t�dd�t�dd�f�}|�d�}tdd�|D��}td|d	�td
�t	|d|�d�D] \}}td||j
|jd	f�|jj
d
d�D]}td|�qWq?||d�}|r�tdd�|D��}tdd�|D��}	tdt|�|	|d	f�t�dS)NFz<frozen importlib._bootstrap>z&<frozen importlib._bootstrap_external>z	<unknown>�	tracebackcs��|]}|jVqdS�N��size��.0�stat�r�;/usr/lib/python3/dist-packages/mercurial/utils/memorytop.py�	<genexpr>��zmemorytop.<locals>.<genexpr>z 
Total allocated size: %.1f KiB
iz&Lines with the biggest net allocations�z#%d: %d objects using %.1f KiBT)�most_recent_firstz    csrrrrrrrr
&rcsrr)�countrrrrr
'rz#%s other: %d objects using %.1f KiB)�gc�collect�tracemalloc�
take_snapshot�
filter_traces�Filter�
statistics�sum�print�	enumeraterrr�format�len)
�limit�snapshot�stats�total�indexr
�line�otherrrrrr�	memorytops>


��
�����
r%)r)rrr%rrrr�<module>s