403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.15.203.168
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/__pycache__/View.cpython-37.opt-1.pyc
B

�]�H�@sbGdd�d�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	�Zd
d�Ze�dad
S)c@seZdZdd�Zdd�ZdS)�Horizonc
Cs�||_|j|_|jj|_|j|_|jjjj|_|jj|_t|�|�dgdi|j	��|�d��|jj
|j|j�
�|j�|j�|_dS)N��)�mod�_hiding_tag_�retset�hv�_root�sys�exc_info�iso�str�__dict__�heap�enter�gc�collect�heapycr�
hv_horizon)�selfrrr�C/opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/View.py�__init__s


zHorizon.__init__cCs"|�|j�|j�|jj���}|S)N)rr�newsrrrr)r�rrrrrszHorizon.newsN)�__name__�
__module__�__qualname__rrrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�
ClearCallback)�callbackcCs
||_dS)N)r)rrrrrrszClearCallback.__init__cCs"|jdk	r|�|�ntd�dS)NzNo callback)r�print)r�wrrrr�__call__s
zClearCallback.__call__N)rrr�	__slots__rr rrrrrsrc@seZdZdZdd�ZdS)�Gchook_type)�x�__weakref__�cbcCs
||_dS)N)r#)�grrrr&szGchook_type.__init__N)rrrr!rrrrrr"#sr"c@seZdZdZdd�ZdS)�ObservationList)rcCst�||�||_dS)N)�listrr)r�iterableZ
hiding_tagrrrr-szObservationList.__init__N)rrrr!rrrrrr'*sr'c@s�eZdZdZdZdZdZdZdZgZ	dZ
dd�Zd	d
�Zdd�Z
d
d�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Z d3d4�Z!d5d6�Z"d7d8�Z#d9d:�Z$d;d<�Z%d=d>�Z&d?d@�Z'dcdAdB�Z(dddCdD�Z)dEdF�Z*dGdH�Z+dIdJ�Z,dKdL�Z-dedNdO�Z.dfdPdQ�Z/dRdS�Z0dTdU�Z1dgdWdX�Z2dYdZ�Z3d[d\�Z4d]d^�Z5d_d`�Z6dadb�Z7dMS)h�_GLUECLAMP_)
z_parent.ImpSet:immnodesetz_parent.ImpSet:immnodeset_unionz_parent.ImpSet:mutnodesetz_parent.ImpSet:NodeSetz_parent.UniSet:nodeset_adaptz_parent.UniSet:retsetz_parent.Use:idsetz_parent.Use:isoz_parent.Use:Typez_root:ctypesz_root:gcz_root:typesz_root.warnings:warn)�is_rg_update_all�referrers_lock�_is_clear_drg_enabled�root)r�target�is_hiding_calling_interpreterFr)�imdom�referrers_gccCs|��S)N)�
mutnodeset)rrrr�_get__clear_hookXsz_GLUECLAMP_._get__clear_hookcCs�|j}yt|�d}Wntk
r2|��YnTX|�g}|ddkrR|��n4|jj�|d�dkr�td�|�|�d|dj	_
dS)N��z-GC hook object was referred to from somebody!)�_clear_hookr(�
IndexError�clear_setuprr	�getrefcountr�clear_callbackr%r)r�chr�crrr�clear_check[s

z_GLUECLAMP_.clear_checkcCs,|j��x|jD]
}|�qW|��dS)N)r7�clear�
clear_methodsr9)rr�mrrrr;ls

z_GLUECLAMP_.clear_callbackcCsB|j}|��|��}|�|j�}||_|�|jj�	||��dS)N)
r7r?�gchook_typerr;r%�addr�weakref�ref)rr<r=r%rrrr9rsz_GLUECLAMP_.clear_setupcCsgS)Nr)rrrr�_get_clear_methodszsz_GLUECLAMP_._get_clear_methodscCs|j�|�|��dS)N)r@�appendr>)rrArrr�clear_register_method}sz!_GLUECLAMP_.clear_register_methodcs$������fdd�}��|��S)Ncs�jr�jr���ndS)N)�	is_sortedr-r?r)�drgrrr�	clear_drg�s
z2_GLUECLAMP_._get_dict_ownership.<locals>.clear_drg)�	nodegraphrH)rrKr)rJrr�_get_dict_ownership�s
z_GLUECLAMP_._get_dict_ownershipcCstS)N)r")rrrr�_get_gchook_type�sz_GLUECLAMP_._get_gchook_typecCs|j�|jjj|jj�jS)N)Zctypes�castZ	pythonapiZPyCapsule_TypeZ	py_object�value)rrrr�_get_capsule_type�sz_GLUECLAMP_._get_capsule_typecCs|jt|jjj���S)N)rr(r/r	�modules�items)rrrr�_get_heapdef_modules�sz _GLUECLAMP_._get_heapdef_modulesc	Csrg}xd|jD]Z\}}yt|d�}Wntk
r8wYnX|rJt||j�s\|�d�|��q|�|�qWt|�S)NZ_NyHeapDefs_z+Ignoring non-capsule object {}._NyHeapDefs_)	Zheapdef_modules�getattr�AttributeError�
isinstanceZcapsule_type�warn�formatrG�tuple)r�heapdefs�nrAZhdrrr�
_get_heapdefs�sz_GLUECLAMP_._get_heapdefscCs|jjS)N)�_parentr)rrrr�_get_heapyc��z_GLUECLAMP_._get_heapyccCs|j|j|jd�}|S)N)rr0)�new_hvrr0)rrrrr�_get_hv�s
z_GLUECLAMP_._get_hvcCs|��S)N)r3)rrrr�_get_norefer�r`z_GLUECLAMP_._get_norefercCsgS)Nr)rrrr�_get_referrers_targets�r`z"_GLUECLAMP_._get_referrers_targetscCs|��}|�|j�|S)N)rLrH�	_clear_rg)r�rgrrr�_get_rg�sz_GLUECLAMP_._get_rgcCs.|jr
dS|j}|jr*|��|j��ndS)N)r,rfrIr?�norefer)rrfrrrre�sz_GLUECLAMP_._clear_rgcCsdS)Nr5r)rrrr�_get_referrers_lock�r`z_GLUECLAMP_._get_referrers_lockcCs|jjS)N)r�	RootState)rrrr�	_get_root�r`z_GLUECLAMP_._get_rootcCs|jj�|j�S)N)r^ZTargetr)rrrr�_get_target�r`z_GLUECLAMP_._get_targetcCs|��||j_dS)N)�clear_retainersrr.)rr.rrr�	_set_root�sz_GLUECLAMP_._set_rootc	Cs6|jd7_z|�|�||�S|jd8_XdS)Nr)r,�update_referrers)r�X�frrr�call_with_referrers�s

z_GLUECLAMP_.call_with_referrerscCs|j��|j��dS)z3G.clear_retainers()
Clear the retainer graph V.rg.
N)rfr?rh)rrrrrm�s
z_GLUECLAMP_.clear_retainerscCs|�|f�dS)z�dominos(X) -> idset
Return the dominos of a set of objects X. The dominos of X is the set
of objects that are dominated by X, which is the objects that will become
deallocated, directly or indirectly, when the objects in X are deallocated.r5)�
dominos_tuple)rrprrr�dominos�sz_GLUECLAMP_.dominoscsX�fdd�|D�}�jj����jg�}��|���|���t����fdd�|D��S)zcV.dominos_tuple(X) -> tuple of idsets
Return a tuple of dominos for the tuple of sets of objects X.csg|]}��|��qSr)�
nodeset_adapt)�.0r#)rrr�
<listcomp>�sz-_GLUECLAMP_.dominos_tuple.<locals>.<listcomp>c	s*g|]"}���|�����|B���qSr)r)rvZDi)�D�T�Wrrrrw�s)rZ	reachable�
immnodesetr.Zimmnodeset_unionrZ)rrpZD_�Sr)rxryrzrrrs�s


z_GLUECLAMP_.dominos_tuplecCs|�|f�dS)z�domisize(X) -> int
Return the dominated size of a set of objects X. The dominated size of X
is the total size of memory that will become deallocated, directly or
indirectly, when the objects in X are deallocated. See also: indisize.r5)�domisize_tuple)rrprrr�domisize�sz_GLUECLAMP_.domisizecst�fdd���|�D��S)zk"V.domisize_tuple(X) -> tuple of ints
Return a tuple of dominated sizes for the tuple of sets of objects X.csg|]}��|��qSr)�indisize)rvZ	dominos_i)rrrrw�sz._GLUECLAMP_.domisize_tuple.<locals>.<listcomp>)rZrs)rrpr)rrr}�sz_GLUECLAMP_.domisize_tuplecCs�|jjrd|j_nh|jjdk	r$|�Sddl}yddWn,tk
rd|��\}}}|jjj}YnXd|_~~~||j_z
|�}Wdd|j_X|S)Nr5r)	rr0�
limitframer	�ZeroDivisionErrorr
�tb_frame�f_back�last_traceback)r�funcr	�typerP�	tracebackr�Zretvalrrrr�s"


z_GLUECLAMP_.entercsD���}��������fdd�����jj�|������g�S)Ncs0��������}���jj�|���dS)N)r?rBrCrrDrE)rr=)r%r��horrrr%sz_GLUECLAMP_.gchook.<locals>.cb)rBr3rCrrDrE)rr�r=r)r%r�r�rr�gchooks
z_GLUECLAMP_.gchookcCs�|j��|j��|j��}|j��}|�||jd�}|�|td�}|�||jj	j
d�}|�||jjjd�}|�
|�}~~|r�||�|j�|jj|j��|�|jjg�|����}|S)Nz!=)rr�get_objectsr�cli_type�selectrBrr�types�	FrameTyperD�
ReferenceTyper�idsetr�HeapViewrjr[�reachable_xr{�observation_containers)r�rma�objs�clirrrr�heapgs"




z_GLUECLAMP_.heapgc	Cs�|j��|j��|j��}|�|j�|�t�B}|rr||�|j�|jj	|j
��|�|jj	g�|�|g���O}|�
|�|}|j|}x||ks�||O}|j|}q�W~~|j}|S)N)rrr�ZTyperBrr�rr�rjr[r�r{r�	referentsZbytype)rr�rZexcluderErrr�heapuAs&





z_GLUECLAMP_.heapucs�tsp�j}gdddddi�g}|�_z:t��|��t��|d�j�t��|d�j�Wd|�_X~~da�j����	�fdd	��S)
zAV.heap() -> idset
Return the set of objects in the visible heap.
�arg�G�z��?�br5NTcs���j���S)N)r�rrr)rrr�<lambda>xsz"_GLUECLAMP_.heap.<locals>.<lambda>)
�heap_one_time_initializedr.�reprr�rZshpathsZrprrr)rZold_rootr�r)rrr^s
z_GLUECLAMP_.heapcCs
|�|�S)N)r)rrrr�horizon{sz_GLUECLAMP_.horizoncCs6|�|�|��}|j�|�|jg�|�}|�||@�S)z�imdom(X) -> idset
Return the immediate dominators of a set of objects X. The immediate
dominators is a subset of the referrers. It includes only those
referrers that are reachable directly, avoiding any other referrer.)ru�	referrersrr�r{r.r)rrpZpredZvisitrrrr1~sz_GLUECLAMP_.imdomcCs|j�|�|��S)z�indisize(X) -> int
Return the sum of the individual sizes of the set of objects X.
The individual size of an object is the size of memory that is
allocated directly in the object, not including any externally
visible subobjects. See also: domisize.)rZindisize_sumru)rrprrrr�sz_GLUECLAMP_.indisizeNcCs�|dkr|j}|dkr|j}|dkr*|j}|j�||�}||_||_|�|�|�|j	j
j�|�|j	j
j�|�|j	j
j
�|S)N)r[r.rBrr�rr0Zregister_hidden_exact_typeZregister__hiding_tag__typer^�UniSetZKindZIdentitySetMulti�IdentitySetSingleton)rrr0r[r.rBrrrrra�s
z_GLUECLAMP_.new_hvcCs|j�||�}|j|_|S)N)rZ	NodeGraphr)rr)Z
is_mappingZngrrrrL�sz_GLUECLAMP_.nodegraphcCs�y|�|jj��|�Stk
r(YnXy|�|j����|�Stk
rTYnXy|�|j����|�Stk
r�tdt|���YnXdS)NzNo object found at address %s)	r{rZstatic_types�obj_at�
ValueErrorrr�r�hex)rZaddrrrrr��sz_GLUECLAMP_.obj_atcsf�j��}�j��}|�|�jd�|�|td�|�|�jjj	d�}��
�fdd�|D��}~~|S)Nz<=cs"g|]}t|dd��jkr|�qS)rN)rUr)rvr#)rrrrw�sz6_GLUECLAMP_.observation_containers.<locals>.<listcomp>)rr�rr�r�ZNodeSetr'r^r�r�r{)rr�r�rr)rrr��s

z"_GLUECLAMP_.observation_containersrcCst||j�S)N)r'r)rr)rrr�observation_list�sz_GLUECLAMP_.observation_listcCs|�|j�|�|���S)zsV.referents(X) -> idset
Return the set of objects that are directly referred to by
any of the objects in the set X.)rr�relimgru)rrprrrr��sz_GLUECLAMP_.referentscCs�|�|�}|jr�|j|jjkr�|j�|�s�|j�||j�s�|j��ddl	}|�
�|j�|j�||j�
�}|j|O_n�|�|�}||j8}|j�|��szx(|jD]}|�}|dk	r�||jjO}q�W||j�
�O}|j��|j�|j|�|j��|j||B|j��BO_|j|j�
�8_|�|�|j}|j�|��svtd�td�t|�||j�
���d}|j�|�}|�|�dg}|�|�}|S)ziV.referrers(X) -> idset
Return the set of objects that directly refer to
any of the objects in the set X.r5Nzupdate_referrers failedzY - domain of rg:)rur+r.rrjrfZ
domain_coversrhr?rrrZupdate_referrers_completelyZ
get_domainr3�referrers_targets�setZnodesroZ	get_rangerr�r�r{r)rrprZaddnoref�YZwt�trrrr��sB






z_GLUECLAMP_.referrerscCs*t|�|��}|�|jj|��|�|�S)z�V.referrers_gc(X) -> idset
Return the set of objects that directly refer to
any of the objects in the set X.
This differs from referrers in that it uses the
gc module's view of the referrers. This is more or less
valid depending on viewpoint.

)rZrur�rZ
get_referrersr)rrprrrr2�s	z_GLUECLAMP_.referrers_gccs,�fdd�}�jj�||�}�j�|�dS)Ncs�j�|�dS)N)r��remove)r)rrrr�sz0_GLUECLAMP_.referrers_add_target.<locals>.remove)rrDrEr�rG)rr�r�rr)rr�referrers_add_targetsz _GLUECLAMP_.referrers_add_targetcCs|�|�dS)aV.update_referrers(X)
Update the view V from the set X. X must be adaptable to NodeSet. V.rg is
updated so that in addition to its previos mapping, it will also contain
mappings for the elements of X to their referrers, from them to their
referrers and so on.
N)r�)rrprrrrosz_GLUECLAMP_.update_referrers)r)r)NFNNN)NF)r)8rrrZ	_imports_Z	_chgable_Z	_setable_r0r+r-rZ_uniset_exportsr4r>r;r9rFrHrMrNrQrTr]r_rbrcrdrgrerirkrlrnrrrmrtrsr~r}rr�r�r�rr�r1rrarLr�r�r�r�r�r2r�rorrrrr*2sl

%
	


*r*c	Cs�ddl}ddl}ddl}ddl}ddl}xJt|j���D]8}|dkrFq8x(t|j���D]}t	|t
�rVt|�qVWq8Wx(t
tg��t
td��gD]}t|�q�Wyddl
}Wntk
r�YnXddl}ddl}dS)Nr5r)r�Zguppy.heapy.heapycZguppy.sets.setscr	rDr(rR�valuesr
rWr��dir�iterZapport.fileutils�ImportError�rer�)	r�Zguppyr	rDrr�Zapportr�r�rrr�prime_builtin_typess&
r�FN)	r�objectrr"r(r'r*r�r�rrrr�<module>s
g%

Youez - 2016 - github.com/yon3zu
LinuXploit