File: //opt/alt/python37/lib/python3.7/site-packages/exabgp/vendoring/__pycache__/gcdump.cpython-37.pyc
B
RP�ev � @ s d dl Z d dlZdd� ZdS )� Nc C s
t d� t�� t d� t�� t d� x�tjD ]�} t| �}t|�dkrXd|d d� }t d|� t dt| �� t dtt�| ��� ybt dt� t| ��� t d t�
| �� t�t| ��\}}t d
|� x|D ]}t d|�d�� q�W W n t
k
r� Y nX t � q0W d S )
Nz
Collecting GARBAGE:z
GARBAGE OBJECTS:�P z%s...z::z type:z
referrers:z
is class:z
module:z
line num:z line:�
)�print�gcZcollect�garbage�str�len�typeZ
get_referrers�inspect�isclass� getmodule�getsourcelines�rstrip� Exception)�x�s�lines�line_num�l� r �H/opt/alt/python37/lib/python3.7/site-packages/exabgp/vendoring/gcdump.py�dump s,
r )r r
r r r r r �<module> s