Your IP : 18.222.167.85
�
zfc @ s� d Z d d d d g Z d d l Z d d d � Z d d d � Z d � Z d e j f d
� � YZ d � Z d � Z
e d
k r� e
� n d S( sU Python interface for the 'lsprof' profiler.
Compatible with the 'profile' module.
t runt runctxt helpt Profilei����Nc C sm t � } d } z+ y | j | � } Wn t k
r8 n XWd | d k rY | j | � n | j | � } X| S( s Run statement under profiler optionally saving results in filename
This function takes a single argument that can be passed to the
"exec" statement, and an optional file name. In all cases this
routine attempts to "exec" its first argument and gather profiling
statistics from the execution. If no file name is present, then this
function automatically prints a simple profiling report, sorted by the
standard name string (file/line/function-name) that is presented in
each line.
N( R t NoneR t
SystemExitt
dump_statst print_stats( t statementt filenamet sortt proft result( ( s /usr/lib64/python2.7/cProfile.pyR s
c C ss t � } d } z1 y | j | | | � } Wn t k
r>