config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/pstats.pyo

hRc@sdZddkZddkZddkZddkZddkZdgZdfdYZdfdYZdZ	dZ
d	Zd
ZdZ
dZd
ZedjoddkZyddkZWnej
onXdeifdYZddkZeeidjoeidZneZy4eeZeidIJeieidIJWnej
onXndS(s3Class for printing reports on profiled python code.iNtStatscBs4eZdZdZdZdZdZdZdZhd3d
<d6d
<d9d<d<d<d?d<dBd<dCdDdEfdfd<dHd<dKd<dNd!<Z	d"Z
d#Zd$Zd%Z
d&Zd'Zd(Zd)Zd*Zd+Zd,Zd-d.Zd/Zd0ZRS(Os=This class is used for creating reports from data generated by the
    Profile class.  It is a "friend" of that class, and imports data either
    by direct access to members of Profile class, or by reading in a dictionary
    that was emitted (via marshal) from the Profile class.

    The big change from the previous Profiler (in terms of raw functionality)
    is that an "add()" method has been provided to combine Stats from
    several distinct profile runs.  Both the constructor and the add()
    method now take arbitrarily many file names as arguments.

    All the print methods now take an argument that indicates how many lines
    to print.  If the arg is a floating point number between 0 and 1.0, then
    it is taken as a decimal percentage of the available lines to be printed
    (e.g., .1 means print 10% of all available lines).  If it is an integer,
    it is taken to mean the number of lines of data that you wish to have
    printed.

    The sort_stats() method now processes some additional options (i.e., in
    addition to the old -1, 0, 1, or 2).  It takes an arbitrary number of
    quoted strings to select the sort order.  For example sort_stats('time',
    'name') sorts on the major key of 'internal function time', and on the
    minor key of 'the name of the function'.  Look at the two tables in
    sort_stats() and get_sort_arg_defs(self) for more examples.

    All methods return self,  so you can string together commands like:
        Stats('foo', 'goo').strip_dirs().sort_stats('calls').                            print_stats(5).print_callers(5)
    cOsti|_d|jo|d|_|d=n|o_|i}|idig}|D]}|d|||fq_~}td|nt|p
d}n|d}|d}|i	||i
|dS(Ntstreams, s%s=%ssunrecognized keyword args: %sii(tsyststdoutRtkeystsorttjoint
ValueErrortlentNonetinittadd(tselftargstkwdsRt_[1]tktextrastarg((s"/usr/local/lib/python2.5/pstats.pyt__init__Is


8




cCsd|_g|_d|_d|_d|_d|_d|_h|_h|_	h|_
|i|d}z|id}Wd|o:|i
dI|io|i
|idIn|i
JnXdS(NiisInvalid timing datai(R	tall_calleestfilestfcn_listttotal_ttttotal_callst
prim_callstmax_name_lent	top_leveltstatst
sort_arg_dictt
load_statstget_top_level_statsR(RRttrouble((s"/usr/local/lib/python2.5/pstats.pyR
_s(										




cCs|p
h|_nt|tort|d}ti||_|iy-ti|}t	i
|id|}WnnX|g|_n4t
|do#|i|i|_h|_n|iptd|i|fndS(Ntrbs    tcreate_statss1Cannot create or construct a %r object from '%r''(Rt
isinstancet
basestringtopentmarshaltloadtclosetoststatttimetctimetst_mtimeRthasattrR"t	TypeErrort	__class__(RRtft
file_stats((s"/usr/local/lib/python2.5/pstats.pyRus(




cCsx|iiD]\}\}}}}}|i|7_|i|7_|i|7_|idod|i|<ntt	||i
jott	||_
qqWdS(Ntjprofileitprofiler(R3iR4(RtitemsRRRthas_keyR	RRtfunc_std_stringR(Rtfunctcctncttttcttcallers((s"/usr/local/lib/python2.5/pstats.pyRsc	Gs|p|Snt|djo|i|dn|d}t|t|jp|i|ijot|}n|i|i7_|i|i7_|i|i7_|i|i7_x|i	D]}d|i	|<qW|i|ijo|i|_nd|_xi|i
iD]X\}}||i
jo|i
|}nddddhf}t|||i
|<q"W|S(Nii(RRttypeR0RRRRRRR	RRRt	iteritemstadd_func_stats(Rtarg_listtotherR8R*t
old_func_stat((s"/usr/local/lib/python2.5/pstats.pyRs0
,
	cCs8t|d}zti|i|Wd|iXdS(s:Write the profile data to a file we know how to load back.twbN(tfileR&tdumpRR((RtfilenameR1((s"/usr/local/lib/python2.5/pstats.pyt
dump_statssiis
call counttcallsiscumulative timet
cumulativeis	file nameREisline numbertlinetmoduleis
function nametnamesname/file/linetnflitpcallsis
standard nametstdnameis
internal timeR+cCs|iph|_}h}xn|iiD]]\}}|}xH|o@|pPn||jod||<Pn|||<|d }qBWq-Wx|D]
}||=qWn|iS(s)Expand all abbreviations that are unique.ii(Rtsort_arg_dict_defaultR?(Rtdicttbad_listtwordttuptfragment((s"/usr/local/lib/python2.5/pstats.pytget_sort_arg_defss&




cGs|pd|_|Snt|djoVt|dtdjo9hdd<dd<dd<dd<|dg}n|i}d}d	|_d	}xA|D]9}|||d}|i|||d7_d
}qWg}xY|iiD]H\}\}}	}
}}|i||	|
|f|t||fqW|i	t
|ig|_}
x|D]}|
i|dqrW|S(NiiRPiRIR+RJits, ((RRR>RWt	sort_typeRR?tappendR7Rt	TupleComptcompare(Rtfieldt
sort_arg_defst
sort_tuplet	connectorRTt
stats_listR8R9R:R;R<R=Rttuple((s"/usr/local/lib/python2.5/pstats.pyt
sort_statss8	0
			

cCs|io|iin|S(N(Rtreverse(R((s"/usr/local/lib/python2.5/pstats.pyt
reverse_orders
c
Cs\|i}h|_}d}x|iD]\}\}}}}}	t|}
tt|
|jott|
}nh}x*|	iD]\}}
|
|t|<qW|
|jo*t||
|||||f||
<q)|||||f||
<q)W|i}h|_}x|D]}d|t|<q#W||_d|_	d|_
|S(Ni(RR?tfunc_strip_pathRR7R@RR	RRR(RtoldstatstnewstatsRR8R9R:R;R<R=tnewfunct
newcallerstfunc2tcallertold_toptnew_top((s"/usr/local/lib/python2.5/pstats.pyt
strip_dirss4	



 	
			c
Cs|iodSnh|_}x|iiD]|\}\}}}}}||joh||<nxC|iD]5\}}	||joh||<n|	|||<qrWq/WdS(N(RRR?(
RRR8R9R:R;R<R=RkRl((s"/usr/local/lib/python2.5/pstats.pytcalc_calleess




cCs^|}t|tdjoEg}x|D]0}ti|t|o|i|q,q,Wnt|}t|tdjo@d|jo
djno"t||d}|| }nLt|tdjo2d|jo
|jno|}|| }nt|t|jo'|dt|t||f}n||fS(NRXg?gg?iis6   List reduced from %r to %r due to restriction <%r>
(R>tretsearchR7RZRtint(Rtseltlisttmsgtnew_listR8tcount((s"/usr/local/lib/python2.5/pstats.pyteval_print_amount,s$77!cCs|i}|io|i}d|id}n|ii}d}x)|D]!}|i|||\}}qNWt|}|pd|fSn|i|IJ|t|ijoJd}xA|D]5}tt||jott|}qqWn|d|fS(Ns   Ordered by: s
s!   Random listing order was used
ii(	RRRYRRRyRRR7(Rtsel_listtwidthRuRvt	selectionRxR8((s"/usr/local/lib/python2.5/pstats.pytget_print_listAs(	


cGs%x|iD]}|i|IJq
W|io|iJnd}x*|iD]}|i|It|IJqFW|i|I|iIdI|i|ijo|id|iIn|id|iIJ|iJ|i|\}}|o:|ix|D]}|i	|qW|iJ|iJn|S(Nt isfunction callss(%d primitive calls)sin %.3f CPU secondss        (
RRRtfunc_get_function_nameRRRR}tprint_titlet
print_line(RtamountRGtindentR8R{Ru((s"/usr/local/lib/python2.5/pstats.pytprint_statsYs.



cGs|i|\}}|o~|i|i|dxO|D]G}||ijo|i|||i|q=|i||hq=W|iJ|iJn|S(Ns	called...(R}Rptprint_call_headingRtprint_call_lineR(RRR{RuR8((s"/usr/local/lib/python2.5/pstats.pyt
print_calleesos
c
Gs|i|\}}|oe|i|dx@|D]8}|i|\}}}}}	|i|||	dq3W|iJ|iJn|S(Nswas called by...s<-(R}RRRR(
RRR{RuR8R9R:R;R<R=((s"/usr/local/lib/python2.5/pstats.pyt
print_callers~sc
Cs|idi||IJt}xS|iiD]B\}}}}}|o&|ii}	t|	t}Pq0q0W|o|id|dIJndS(Ns	Function R~s    ncalls  tottime  cumtime(RtljusttFalseRt
itervaluestnextR#Rb(
Rt	name_sizetcolumn_titlet	subheaderR9R:R;R<R=tvalue((s"/usr/local/lib/python2.5/pstats.pyRs	s->cCs]|it|i||I|p|iJdSn|i}|id}x|D]}t|}||}	t|	to|	\}
}}}
|
|jod|
|f}nd|
f}d|iddt|t	|t	|
|f}|d}n/d||	t	|i
|d	f}|d	}|i|||IJd
}qYWdS(NRXs%d/%ds%ds%s %s %s  %siiis	%s(%r) %siR~(RR7RRRR#RbtrjustRtf8R(RRtsourcet	call_dicttarrowtclistRR8RMRR:R9R;R<tsubstatst
left_width((s"/usr/local/lib/python2.5/pstats.pyRs. 



$
cCs|idI|idIJdS(Ns-   ncalls  tottime  percall  cumtime  percallsfilename:lineno(function)(R(R((s"/usr/local/lib/python2.5/pstats.pyRs
cCs
|i|\}}}}}t|}||jo|dt|}n|i|idI|it|I|djo|idIn|it||I|it|I|djo|idIn|it||I|it|IJdS(Nt/i	iR~is        s        (RtstrRRRR7(RR8R9R:R;R<R=tc((s"/usr/local/lib/python2.5/pstats.pyRs


(ii((ii(((iis
call count(ii((ii(((iiscumulative time(ii((ii(((iis	file name(ii((ii(((iisline number(ii((ii(((iis	file name(ii((ii(((iis
function name(ii(ii(ii(ii((ii(((iis
call count(ii((ii(((iis
standard name(ii((ii(((iis
internal time(t__name__t
__module__t__doc__RR
RRRRHRQRWRcReRoRpRyR}RRRRRRR(((s"/usr/local/lib/python2.5/pstats.pyR+s@				
		
										 										R[cBs eZdZdZdZRS(sThis class provides a generic function for comparing any two tuples.
    Each instance records a list of tuple-indices (from most significant
    to least significant), and sort direction (ascending or decending) for
    each tuple-index.  The compare functions can then be used as the function
    argument to the system sort() function when a list of tuples need to be
    sorted in the instances order.cCs
||_dS(N(tcomp_select_list(RR((s"/usr/local/lib/python2.5/pstats.pyRscCs]xV|iD]K\}}||}||}||jo	|Sn||jo|Sq
q
WdS(Ni(R(Rtlefttrighttindext	directiontltr((s"/usr/local/lib/python2.5/pstats.pyR\s



	
(RRRRR\(((s"/usr/local/lib/python2.5/pstats.pyR[s	cCs(|\}}}tii|||fS(N(R)tpathtbasename(t	func_nameRGRKRM((s"/usr/local/lib/python2.5/pstats.pyRfscCs|dS(Ni((R8((s"/usr/local/lib/python2.5/pstats.pyRscCsb|d d
joE|d}|ido#|idod|dd!Sq^|Sn	d	|SdS(Nit~it<t>s{%s}iis	%s:%d(%s)(Ri(t
startswithtendswith(RRM((s"/usr/local/lib/python2.5/pstats.pyR7s
 cCsV|\}}}}}|\}}}	}
}||||||	||
t||fS(s3Add together all the stats for two profile entries.(tadd_callers(ttargetRR9R:R;R<R=tt_cctt_nctt_tttt_ctt	t_callers((s"/usr/local/lib/python2.5/pstats.pyR@scCs{h}x$|iD]\}}|||<qWxG|iD]9\}}||jo|||||<q:|||<q:W|S(s*Combine two caller lists in a single list.(R?(RRtnew_callersR8Rl((s"/usr/local/lib/python2.5/pstats.pyRs


cCs+d}x|iD]}||7}qW|S(s@Sum the caller statistics to get total number of calls received.i(R(R=R:RI((s"/usr/local/lib/python2.5/pstats.pytcount_callss

cCsd|S(Ns%8.3f((tx((s"/usr/local/lib/python2.5/pstats.pyRst__main__tProfileBrowsercBseZddZdZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZdZdZdZdZdZdZdZdZRS(cCsatii|d|_|dj	o"t||_|ii|_nd|_ti	|_dS(Ns% (
tcmdtCmdRtpromptR	RRRRR(Rtprofile((s"/usr/local/lib/python2.5/pstats.pyR"s	
	c
Cs|i}g}x|D]}y|it|wWntj
onXyNt|}|djp
|djo|idIJwn|i|wWntj
onX|i|qW|iot|i||n|idIJdS(Niis#Fraction argument must be in [0, 1]sNo statistics object is loaded.(tsplitRZRsRtfloatRRtgetattr(RtfnRKR
t	processedttermtfrac((s"/usr/local/lib/python2.5/pstats.pytgeneric,s.



cCsR|idIJ|idIJ|idIJ|idIJ|idIJ|idIJdS(NsArguments may be:s0* An integer maximum number of entries to print.s:* A decimal fractional number between 0 and 1, controllings-  what fraction of selected entries to print.s8* A regular expression; only entries with function namess  that match it are printed.(R(R((s"/usr/local/lib/python2.5/pstats.pytgeneric_helpDs




cCs|ii|dS(Ni(RR(RRK((s"/usr/local/lib/python2.5/pstats.pytdo_addLscCs|idIJdS(Ns>Add profile info from given file to current statistics object.(R(R((s"/usr/local/lib/python2.5/pstats.pythelp_addOscCs|id|S(NR(R(RRK((s"/usr/local/lib/python2.5/pstats.pyt
do_calleesRscCs|idIJ|idS(Ns6Print callees statistics from the current stat object.(RR(R((s"/usr/local/lib/python2.5/pstats.pythelp_calleesTs
cCs|id|S(NR(R(RRK((s"/usr/local/lib/python2.5/pstats.pyt
do_callersXscCs|idIJ|idS(Ns6Print callers statistics from the current stat object.(RR(R((s"/usr/local/lib/python2.5/pstats.pythelp_callersZs
cCs|idIJdS(NRXi(R(RRK((s"/usr/local/lib/python2.5/pstats.pytdo_EOF^s
cCs|idIJdS(NsLeave the profile brower.(R(R((s"/usr/local/lib/python2.5/pstats.pythelp_EOFascCsdS(Ni((RRK((s"/usr/local/lib/python2.5/pstats.pytdo_quitdscCs|idIJdS(NsLeave the profile brower.(R(R((s"/usr/local/lib/python2.5/pstats.pyt	help_quitfscCs|oQyt||_Wn*tj
o}|i|dIJdSnX|d|_n5t|idjo|id}n|idIJdS(Nis% iis1No statistics object is current -- cannot reload.i(RRtIOErrorRRR(RRKR
((s"/usr/local/lib/python2.5/pstats.pytdo_readis	
cCs|idIJdS(Ns+Read in profile data from a specified file.(R(R((s"/usr/local/lib/python2.5/pstats.pyt	help_readvscCs|iidS(Ni(RRe(RRK((s"/usr/local/lib/python2.5/pstats.pyt
do_reverseys
cCs|idIJdS(Ns/Reverse the sort order of the profiling report.(R(R((s"/usr/local/lib/python2.5/pstats.pythelp_reverse|scCs|ii}|o7t|d|io|ii|inI|idIJx8tiiD]'\}}|id||dfIJqjWdS(NcSs
||jS(((Rta((s"/usr/local/lib/python2.5/pstats.pyt<lambda>ss/Valid sort keys (unique prefixes are accepted):s%s -- %sii(	RRWtfilterRRcRRRQR?(RRKtabbrevstkeyR((s"/usr/local/lib/python2.5/pstats.pytdo_sorts$
cCs|idIJ|idIJdS(Ns.Sort profile data according to specified keys.s3(Typing `sort' without arguments lists valid keys.)(R(R((s"/usr/local/lib/python2.5/pstats.pyt	help_sorts
cGs6g}tiD]!}|i|o||qq~S(N(RRQR(RttextR
RR((s"/usr/local/lib/python2.5/pstats.pyt
complete_sortscCs|id|S(NR(R(RRK((s"/usr/local/lib/python2.5/pstats.pytdo_statsscCs|idIJ|idS(Ns.Print statistics from the current stat object.(RR(R((s"/usr/local/lib/python2.5/pstats.pyt
help_statss
cCs|iidS(Ni(RRo(RRK((s"/usr/local/lib/python2.5/pstats.pytdo_strips
cCs|idIJdS(Ns<Strip leading path information from filenames in the report.(R(R((s"/usr/local/lib/python2.5/pstats.pyt
help_stripscCs|o|SndS(N(R	(RtstopRK((s"/usr/local/lib/python2.5/pstats.pytpostcmdsN(RRR	RRRRRRRRRRRRRRRRRRRRRRRRR(((s"/usr/local/lib/python2.5/pstats.pyR!s2
													
											is*Welcome to the profile statistics browser.sGoodbye.(RRR)R+R&Rqt__all__RR[RfRR7R@RRRRRtreadlinetImportErrorRRRtargvtinitprofileR	tbrowserRtcmdlooptKeyboardInterrupt(((s"/usr/local/lib/python2.5/pstats.pys<module>sD"								
~



Man Man