Your IP : 3.139.93.242


Current Path : /opt/alt/python27/lib64/python2.7/hotshot/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/hotshot/stats.pyc

�
^
bc@s�dZddlZddlZddlZddlmZmZd�Zddd��YZdej	fd��YZ	d	dd
��YZ
ddd��YZd
�ZdS(s Statistics analyzer for HotShot.i����N(tENTERtEXITcCst|�j�S(N(tStatsLoadertload(tfilename((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyRsRcBs#eZd�Zd�Zd�ZRS(cCs.||_i|_g|_|jj|_dS(N(t_logfnt_codet_stacktpopt	pop_frame(tselftlogfn((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyt__init__s			cCs�t�}t|_tjj|j�}d}x�|D]�}|\}\}}}}	|	dkrk||	7}n|tkr�|j|||�}
|j	|
|d�d}q4|t
kr4|j�}
|j|
|d�d}q4q4W|j
s�t�tj|�S(Nig���ư>(tProfilet_brokentimertget_timethotshottlogt	LogReaderRRt	new_framettrace_dispatch_callRR	ttrace_dispatch_returnRtAssertionErrortpstatstStats(R
tpRttaccumteventtwhatRtlinenotfuncnamettdeltatframe((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyRs$		

	
cGs�y|j|}Wn*tk
r=t|�}||j|<nX|jrW|jd}nd}t||�}|jj|�|S(Ni����(RtKeyErrortFakeCodeRtNonet	FakeFrametappend(R
targstcodetbackR ((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyR6s
	(t__name__t
__module__RRR(((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyRs		 R
cBseZd�ZRS(cCsdS(N((R
((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pytsimulate_cmd_completeKs(R)R*R+(((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyR
JsR"cBseZd�ZRS(cCs&||_||_||_|_dS(N(tco_filenametco_firstlinenotco_nameR)(R
RtfirstlinenoR((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyRPs		(R)R*R(((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyR"OsR$cBseZd�ZRS(cCs||_||_dS(N(tf_backtf_code(R
R'R(((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyRWs	(R)R*R(((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyR$VscCs
td�dS(Nsthis timer should not be called(tRuntimeError(((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyR\s((((
t__doc__tprofileRthotshot.logRRRRRR
R"R$R(((s2/opt/alt/python27/lib64/python2.7/hotshot/stats.pyt<module>s	;

?>