ó FØê[c@sÕdZyddlZddlZWn&ek rJZeeeƒd‚nXddlZddlmZm Z d„Z ddd„ƒYZ dej fd „ƒYZ d dd „ƒYZ d dd „ƒYZd„ZdS(s Statistics analyzer for HotShot.iÿÿÿÿNs,; please install the python-profiler package(tENTERtEXITcCst|ƒjƒS(N(t StatsLoadertload(tfilename((s#/usr/lib/python2.7/hotshot/stats.pyRsRcBs#eZd„Zd„Zd„ZRS(cCs.||_i|_g|_|jj|_dS(N(t_logfnt_codet_stacktpopt pop_frame(tselftlogfn((s#/usr/lib/python2.7/hotshot/stats.pyt__init__s   c Csÿ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((s#/usr/lib/python2.7/hotshot/stats.pyRs$          cGs€y|j|}Wn*tk r=t|Œ}||j|s   ;