HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pyc
�
1�3\c@@sIdZddlmZddlmZd�Zdefd��YZdS(	sC
lsprofcalltree.py - lsprof output which is readable by kcachegrind

Authors:
    * David Allouche <david <at> allouche.net>
    * Jp Calderone & Itamar Shtull-Trauring
    * Johan Dahlin

This software may be used and distributed according to the terms
of the GNU General Public License, incorporated herein by reference.
i(tabsolute_importi(tpycompatcC@sPt|t�r dtj|�Sdtj|j�tj|j�|jfSdS(Nt~s%s %s:%d(t
isinstancetstrRtsysbytestco_nametco_filenametco_firstlineno(tcode((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pytlabels
tKCacheGrindcB@s5eZd�Zd�Zd�Zd�Zd�ZRS(cC@s|j�|_d|_dS(N(tgetstatstdatatNonetout_file(tselftprofiler((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pyt__init__scC@sE||_|jd�|j�x|jD]}|j|�q*WdS(Nsevents: Ticks
(Rtwritet_print_summaryR
t_entry(RRtentry((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pytoutput!s
	

cC@sTd}x3|jD](}t|jd�}t||�}qW|jjd|�dS(Nii�ssummary: %d
(R
tintt	totaltimetmaxRR(Rtmax_costRR((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pyR(s
cC@s#|j}|j}t|t�r1|jd�n|jdtj|j��|jdt|��t	|j
d�}t|t�r�|jd|�n|jd|j|f�|jr�|j}ng}t|t�r�d}n	|j}x|D]}|j
||�q�W|jd�dS(	Nsfi=~
sfi=%s
sfn=%s
i�s0 %d
s%d %d
is
(RR	RRRRRRR
Rt
inlinetimeRtcallst	_subentry(RRRR	RRtlinenotsubentry((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pyR/s&					
cC@s�|j}|j}|jdt|��t|t�r\|jd�|jd|j�n:|jdtj|j	��|jd|j|j
f�t|jd�}|jd||f�dS(Nscfn=%s
scfi=~
scalls=%d 0
scfi=%s
scalls=%d %d
i�s%d %d
(
RR	RR
RRt	callcountRRRRRR(RRR RR	R((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pyRPs		
	(t__name__t
__module__RRRRR(((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pyRs
				!N(t__doc__t
__future__RtRR
tobjectR(((s>/usr/lib64/python2.7/site-packages/mercurial/lsprofcalltree.pyt<module>s