ProPeler
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel-ccs
/
calendarserver
/
tap
/
Filename :
profiling.pyc
back
Copy
� �t�ac @ sI d d l Z d d l m Z m Z d e f d � � YZ e e j d <d S( i����N( t CProfileRunnert AppProfilert CProfileCPURunnerc B s e Z d Z d � Z RS( s� Runner for the cProfile module which uses C{time.clock} to measure CPU usage instead of the default wallclock time. c C s� y d d l } d d l } Wn# t k rA } | j d | � n X| j t j � } | j | j � | j r� | j | j � nQ t | j d � �= } | j | d | �} | j � | j d � | j � Wd QXd S( s: Run reactor under the cProfile profiler. i����Nt cProfilet wt stream( R t pstatst ImportErrort _reportImportErrort Profilet timet clockt runcallt runt saveStatst dump_statst profileOutputt opent Statst strip_dirst sort_statst print_stats( t selft reactorR R t et pR t s( ( s/ /opt/cpanel-ccs/calendarserver/tap/profiling.pyR s ( t __name__t __module__t __doc__R ( ( ( s/ /opt/cpanel-ccs/calendarserver/tap/profiling.pyR s s cprofile-cpu( R t twisted.application.appR R R t profilers( ( ( s/ /opt/cpanel-ccs/calendarserver/tap/profiling.pyt <module> s