|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/lib64/python2.4/hotshot/ |
Upload File : |
mň
=5Dc @ s3 d Z d k Z d k l Z d f d YZ d S( s6 High-perfomance logging profiler, mostly written in C.N( s
ProfilerErrort Profilec B s_ t Z d d d Z d Z d Z d Z d Z d Z d Z d
Z d Z
RS( Ni i c C s | o d p d | _ | o | o d p d | _ t i | | i | i | _ } | i t j o4 | i
| _
| i | _ | i | _ | i
| _
n d S( Ni i ( t
lineeventst selft linetimingst _hotshott profilert logfnt _proft pt __class__R t closet startt stopt addinfo( R R R R R ( ( t( /usr/lib64/python2.4/hotshot/__init__.pyt __init__ s "c C s | i i d S( s- Close the logfile and terminate the profiler.N( R R R
( R ( ( R R
s c C s
| i i S( s6 Return the file descriptor of the profiler's log file.N( R R t fileno( R ( ( R R s c C s | i i d S( s Start the profiler.N( R R R ( R ( ( R R s c C s | i i d S( s Stop the profiler.N( R R R ( R ( ( R R $ s c C s | i i | | d S( s3 Add an arbitrary labelled value to the profile log.N( R R R
t keyt value( R R R ( ( R R
( s c C s% d k } | i } | i | | | S( sť Profile an exec-compatible string in the script
environment.
The globals from the __main__ module are used as both the
globals and locals for the script.
N( t __main__t __dict__t dictR t runctxt cmd( R R R R ( ( R t run/ s c C s, t | d d } | i i | | | | S( s Evaluate an exec-compatible string in a specific
environment.
The string is compiled before profiling begins.
s <string>t execN( t compileR t codeR R t runcodet globalst locals( R R R R R ( ( R R : s c O s | i i | | | S( s Profile a single call of a callable.
Additional positional and keyword arguments may be passed
along; the result of the call is returned, and exceptions are
allowed to propogate cleanly, while ensuring that profiling is
disabled on the way out.
N( R R t runcallt funct argst kw( R R R! R"