ó -2NJc@s)dZd„Zdefd„ƒYZdS(sC lsprofcalltree.py - lsprof output which is readable by kcachegrind Authors: * David Allouche 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. cCs5t|tƒrd|Sd|j|j|jfSdS(Nt~s%s %s:%d(t isinstancetstrtco_namet co_filenametco_firstlineno(tcode((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pytlabel s  t KCacheGrindcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs|jƒ|_d|_dS(N(tgetstatstdatatNonetout_file(tselftprofiler((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pyt__init__scCsB||_|dIJ|jƒx|jD]}|j|ƒq'WdS(Ns events: Ticks(R t_print_summaryR t_entry(R R tentry((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pytoutputs    cCsTd}x3|jD](}t|jdƒ}t||ƒ}qW|jd|fIJdS(Niiès summary: %d(R tintt totaltimetmaxR (R tmax_costRR((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pyR!s cCs |j}|j}t|tƒr.|dIJn|d|jfIJ|dt|ƒfIJt|jdƒ}t|tƒrŽ|dI|IJn|d|j|fIJ|j rº|j }ng}t|tƒrØd}n |j}x|D]}|j ||ƒqèW|JdS(Nsfi=~sfi=%ssfn=%siès0 s%d %di( R RRRRRRt inlinetimeRtcallst _subentry(R RR RRRtlinenotsubentry((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pyR(s&        cCs²|j}|j}|dt|ƒfIJt|tƒrY|dIJ|d|jfIJn.|d|jfIJ|d|j|jfIJt|j dƒ}|d||fIJdS(Nscfn=%sscfi=~s calls=%d 0scfi=%ss calls=%d %diès%d %d( R RRRRt callcountRRRR(R RRR RR((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pyRHs   (t__name__t __module__RRRRR(((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pyRs     N(t__doc__RtobjectR(((s</sys/lib/python2.7/site-packages/mercurial/lsprofcalltree.pyt s