%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyo

�
;�Pc@s�dfd��YZdefd��YZdefd��YZdefd��YZdfd	��YZd
�Ze�dadS(
tHorizoncBseZd�Zd�ZRS(cCs�||_|j|_|jj|_|j|_|jjjj|_|jj|_t|j|jdgdi|j	��|jd��|jj
|j|jj
�|jj|j�|_dS(Ni(((tmodt_hiding_tag_tretsetthvt_roottsystexc_infotisotstrt__dict__theaptentertgctcollecttheapycRt
hv_horizon(tselfR((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt__init__s	'

cCs1|j|jj|jj|jj���}|S(N(RRtnewsRRRR(Rtr((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRs-(t__name__t
__module__RR(((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRs	t
ClearCallbackcBs eZdZd�Zd�ZRS(tcallbackcCs
||_dS(N(R(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRscCs(|jdk	r|j|�ndGHdS(NsNo callback(RtNone(Rtwr((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt__call__s(R(RRt	__slots__RR(((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRs	tGchook_typecBseZdZd�ZRS(txt__weakref__tcbcCs
||_dS(N(R(tg((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR#s(RRR (RRRR(((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR!stObservationListcBseZdZd�ZRS(RcCstj||�||_dS(N(tlistRR(Rtiterablet
hiding_tag((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR(s(R(RRRR(((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR"&st_GLUECLAMP_cBs�eZd@ZdAZdBZeZeZdZgZ	dCZ
d�Zd�Zd�Z
d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd �Zd!�Zd"�Zd#�Zd$�Zd%�Zd&�Zd'�Zd(�Zd)�Z d*�Z!d+�Z"d,�Z#d-�Z$d.�Z%d/�Z&dd0�Z'dd1�Z(d2�Z)d3�Z*d4�Z+d5�Z,dDedDdDdDd6�Z.dDed7�Z/d8�Z0d9�Z1dEd:�Z2d;�Z3d<�Z4d=�Z5d>�Z6d?�Z7RS(Fs_parent.ImpSet:immnodesets_parent.ImpSet:immnodeset_unions_parent.ImpSet:mutnodesets_parent.ImpSet:NodeSets_parent.UniSet:nodeset_adapts_parent.UniSet:retsets_parent.Use:idsets_parent.Use:isos_parent.Use:Types_root:gcs_root:typestis_rg_update_alltreferrers_lockt_is_clear_drg_enabledRttargettis_hiding_calling_interpreteritimdomtreferrers_gccCs
|j�S(N(t
mutnodeset(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get__clear_hookSscCs�|j}yt|�d}Wntk
r:|j�n_X|�}|dkr]|j�n<|jjj|�dkr�dGH|j|�d|j	_
ndS(Niis-GC hook object was referred to from somebody!(t_clear_hookR#t
IndexErrortclear_setupRRRtgetrefcounttclear_callbackR R(RtchRtc((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytclear_checkVs	
	

cCs6|jj�x|jD]
}|�qW|j�dS(N(R0tcleart
clear_methodsR2(RRtm((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR4es
cCs]|j}|j�|j�}|j|j�}||_|j|jjj	||��dS(N(
R0R8tgchook_typeRR4R taddRtweakreftref(RR5R6R ((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR2ls	
	cCsgS(N((R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_clear_methodstscCs|jj|�|j�dS(N(R9tappendR7(RR:((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytclear_register_methodwscs/�j����fd�}�j|��S(Ncs#�jr�jr�j�ndS(N(t	is_sortedR)R8((tdrgR(sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt	clear_drg~s
(t	nodegraphRA(RRD((RCRsC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_dict_ownership|s
cCstS(N(R(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_gchook_type�scCs|j|jjjj�S(N(RR*Rtmodulestitems(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_heapdef_modules�scCsWg}xD|jD]9\}}yt|d�}Wn
qnX|j|�qWt|�S(Nt_NyHeapDefs_(theapdef_modulestgetattrR@ttuple(RtheapdefstnR:thd((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt
_get_heapdefs�scCs
|jjS(N(t_parentR(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_heapyc�scCs"|jd|jd|j�}|S(NRR+(tnew_hvRR+(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_hv�scCs
|j�S(N(R.(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_norefer�scCsgS(N((R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_referrers_targets�scCs |j�}|j|j�|S(N(RERAt	_clear_rg(Rtrg((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_rg�scCs=|jr
dS|j}|jr9|j�|jj�ndS(N(R(RZRBR8tnorefer(RRZ((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRY�s			
cCsdS(Ni((R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_referrers_lock�scCs
|jjS(N(Rt	RootState(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt	_get_root�scCs|jjj�S(N(RStTarget(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt_get_target�scCs|j�||j_dS(N(tclear_retainersRtroot(RRc((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt	_set_root�s
cCsA|jd7_z|j|�||�SWd|jd8_XdS(Ni(R(tupdate_referrers(RtXtf((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytcall_with_referrers�s

cCs|jj�|jj�dS(s3G.clear_retainers()
Clear the retainer graph V.rg.
N(RZR8R\(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRb�s
cCs|j|f�dS(s�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.i(t
dominos_tuple(RRf((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytdominos�sc		Cs�g|D]}|j|�^q}|jj}|j|jg�}|j|�}|||�}tg|D]/}|j|||�||||B��^qk�S(scV.dominos_tuple(X) -> tuple of idsets
Return a tuple of dominos for the tuple of sets of objects X.(t
nodeset_adaptRt	reachablet
immnodesetRctimmnodeset_unionRNR(	RRfRtD_tTtStDtWtDi((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRi�s"cCs|j|f�dS(s�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.i(tdomisize_tuple(RRf((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytdomisize�scCs/tg|j|�D]}|j|�^q�S(sk"V.domisize_tuple(X) -> tuple of ints
Return a tuple of dominated sizes for the tuple of sets of objects X.(RNRitindisize(RRft	dominos_i((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRu�scCs�|jjrd|j_n�|jjdk	r4|�Sddl}yddWn+|j�\}}}|jjj}nXd|_|j	�~~~||j_z
|�}Wdd|j_X|S(Ni����ii(
RR+Rt
limitframeRRttb_frametf_backtlast_tracebackt	exc_clear(RtfuncRttypetvaluet	tracebackRytretval((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR�s$	
	

cs_�j�}�j������fd���j�jjj|����j�g�S(Ncs@���j��j�}�j�jjj|���dS(N(R8R;R<RR=R>(RR6(R R~thoR(sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR 	s
(R;R.R<RR=R>(RR~R6((R R~R�RsC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytgchooks
cCs|jj�|jj�|jj�}|jj�}|j||jd�}|j|td�}|j||jj	j
d�}|j||jjjd�}|j
|�}~~|r||j|jj|jj|j�j|j|jjg�|j���}n|S(Ns!=(R
Rtget_objectsRtcli_typetselectR;RRttypest	FrameTypeR=t
ReferenceTypeRtidsetRtHeapViewR^ROtreachable_xRmtobservation_containers(RtrmatobjstcliR((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytheapgs"

	cCs|jj�|jj�|jj�}|j|j�|jt�B}|r�||j|jj|jj	|j
�j|j|jj	g�|j|g���O}n|j
|�|}|j|}x'||ks�||O}|j|}q�W~~|j}|S(N(R
RR�tTypeR;RR�RR�R^ROR�RmRt	referentstbyclass(RR�RtexcludeR>((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytheapu8s&

	

	cs�ts]dat�j�jj���g}t�j|�j�t�j|�j�n�jj	��j
�fd��S(sAV.heap() -> idset
Return the set of objects in the visible heap.
ics�j�jj��S(N(R�RR((R(sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt<lambda>is(theap_one_time_initializedtreprR�RRRtshpathstrpR
RR(RR((RsC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRXs
cCs
|j|�S(N(R(R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pythorizonlscCsM|j|j|��}|jj|j|jg�|�}|j||@�S(s�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.(Rkt	referrersRR�RmRcR(RRftpredtvisit((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR,os$cCs|jj|j|��S(s�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.(Rtindisize_sumRk(RRf((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRwxscCs�|dkr|j}n|dkr0|j}n|dkrH|j}n|jj||�}||_||_|j|�|j	|j
jj�|j	|j
jj
�|j	|j
jj�|S(N(RRORcR;RR�RR+tregister_hidden_exact_typetregister__hiding_tag__typeRStUniSettKindtIdentitySetMultitIdentitySetSingleton(RRR+RORcR;R((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRU�s		
cCs%|jj||�}|j|_|S(N(Rt	NodeGraphR(RR$t
is_mappingtng((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRE�scCs�y |j|jj�j|�SWntk
r3nXy#|j|jj��j|�SWntk
rjnXy#|j|jj��j|�SWn$tk
r�tdt|��nXdS(NsNo object found at address %s(	RmRtstatic_typestobj_att
ValueErrorR
R�Rthex(Rtaddr((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR��s 
#
#
cCs�|jj�}|jj�}|j||jd�|j|td�|j||jjj	d�}|j
g|D]'}t|dd�|j
krr|^qr�}~~~|S(Ns<=R(R
R�RR�R�tNodeSetR"RSR�R�RmRMRR(RR�R�RR((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR��s(=	cCst||j�S(N(R"R(RR$((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytobservation_list�scCs"|j|jj|j|���S(ssV.referents(X) -> idset
Return the set of objects that are directly referred to by
any of the objects in the set X.(RRtrelimgRk(RRf((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR��sc	CsL|j|�}|jr�|j|jjkr�|jj|�pU|jj||j�s|jj�ddl	}|j
�|jj|j�||jj
�}|j|O_qn[|j|�}||j8}|jj|�sx9|jD].}|�}|dk	r�||jjO}q�q�W||jj
�O}|jj�|jj|j|�|jj�|j||B|jj�BO_|j|jj
�8_|j|�|j}|jj|�sdGHdGH|j||jj
��GHddlm}m}|�nd}n|jj|�}|j|�dg}|j|�}|S(siV.referrers(X) -> idset
Return the set of objects that directly refer to
any of the objects in the set X.i����Nsupdate_referrers failedsY - domain of rg:(tpmt	set_trace(RkR'RcRR^RZt
domain_coversR\R8R
RRtupdate_referrers_completelyt
get_domainR.treferrers_targetsRtsettnodesRet	get_rangeR�tpdbR�R�R�RmR(	RRfR
taddnoreftYtwtttR�R�((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR��sF


	

 
	cCs;t|j|��}|j|jj|��|j|�S(s�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.

(RNRkR�R
t
get_referrersR(RRf((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR-�s	cs;�fd�}�jjj||�}�jj|�dS(Ncs�jj|�dS(N(R�tremove(R(R(sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR�s(RR=R>R�R@(RR�R�R((RsC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytreferrers_add_targetscCs|j|�dS(sV.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�(RRf((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyRes(s_parent.ImpSet:immnodesets_parent.ImpSet:immnodeset_unions_parent.ImpSet:mutnodesets_parent.ImpSet:NodeSets_parent.UniSet:nodeset_adapts_parent.UniSet:retsets_parent.Use:idsets_parent.Use:isos_parent.Use:Types_root:gcs_root:types(R'R(R)(RR*R+(R,R-N((8RRt	_imports_t	_chgable_t	_setable_tFalseR+R'R)Rt_uniset_exportsR/R7R4R2R?RARFRGRJRRRTRVRWRXR[RYR]R_RaRdRhRbRjRiRvRuRR�R�R�RR�R,RwRRURER�R�R�R�R�R-R�Re(((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyR&,s�							
			
														
				& 									5		cCs�ddl}ddl}ddl}ddl}ddl}x_|jj�D]N}|dkrdqLnx3|jj�D]"}t	|t
�rtt|�qtqtWqLWx6t
tg��t
td��gD]}t|�q�WdS(Ni����((
R�tguppy.heapy.heapyctguppy.sets.setscRR=RHtvaluesRR
t
isinstanceRtdirtiter(R�tguppyRR=RR�((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pytprime_builtin_typess+iN(	RtobjectRRR#R"R&R�R�(((sC/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/View.pyt<module>s
��	

Zerion Mini Shell 1.0