Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�
��
@sddkZddklZlZddgZd�Zdefd��YZhZd�Z	e
djo�ddkZeid	e_eipei
d
IJeid�neiideiieiieid���eeeide�e��Zei�ei�ndS(
i�N(tProfilertprofiler_entrytprofiletStatscOsNt�}|idtdt�z|||�Wd|i�Xt|i��S(s
XXX docstringtsubcallstbuiltinsN(RtenabletTruetdisableRtgetstats(tftargstkwdstp((s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyRs	cBsAeZdZd�Zdd�Zddddd�Zd�ZRS(s
XXX docstringcCs
||_dS(N(tdata(tselfR((s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyt__init__st
inlinetimecs��tijotd���n|iid�fd�dt�xA|iD]6}|io&|iid�fd�dt�qPqPWdS(s
XXX docstringsCan't sort by %stkeycs
t|��S((tgetattr(tx(tcrit(s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyt<lambda>streversecs
t|��S((R(R(R(s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyRsN(Rt__dict__t
ValueErrorRtsortRtcalls(RRte((Rs?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyRs"

cCs�|d
jo
ti}n|i}|d
j	o|| }nd}d}|i|d�d}x0|D](}	|i||	i|	i|	i|	it	|	i
�f�|d	7}|d
j	o||jod
Snd}
|o�|	io�x�|	iD]�}|i|d|i|i|i|idt	|i
�f�|d	7}|
d	7}
|d
j	o||jod
Sn|d
j	o|
|joPq��hqhWd
S(
s
XXX docstrings% 12s %12s %11.4f %11.4f   %s
s% 12s %12s %12s %12s %s
t	CallCountt	Recursives	Total(ms)s
Inline(ms)smodule:lineno(function)iiNs+%s(RRs	Total(ms)s
Inline(ms)smodule:lineno(function)(tNonetsyststdoutRtwritet	callcounttreccallcountt	totaltimeRtlabeltcodeR(RttoptfiletlimittclimittdtcolsthcolstcountRtccounttse((s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pytpprint s<

	
	



cCs�x�t|i��D]�}|i|}t|it�p1t|�t|i�f|d�|i|<n|iouxrtt|i��D]W}|i|}t|it�p1t|�t|i�f|d�|i|<q�q�WqqWdS(swReplace all references to code objects with string
        descriptions; this makes it possible to pickle the instance.iN(	trangetlenRt
isinstanceR'tstrttypeR&R(RtiRtjR1((s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pytfreeze?s
1

N(t__name__t
__module__t__doc__RRRR2R:(((s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyRs
		cCs�t|t�o|Snyt|i}Wn�tj
o�x�ttii��D]o\}}|djoqPntt
|dd�t�pqPn|ii|i�o|}t|i<PqPqPWd|i}t|i<nXd||i
|ifS(Nt__file__s<%s>s	%s:%d(%s)(R5R6t_fn2modtco_filenametKeyErrortlistR tmodulest	iteritemsRRR>t
startswithtco_firstlinenotco_name(R'tmnametktv((s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pyR&Ps 
	t__main__is(usage: lsprof.py <script> <arguments...>ii(R t_lsprofRRt__all__RtobjectRR?R&R;tostargvtstderrtexittpathtinserttabspathtdirnametexecfiletglobalstlocalststatsRR2(((s?/sys/lib/python/lib/python2.5/site-packages/mercurial/lsprof.pys<module>s 	=	


2"


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.