Your IP : 3.16.50.1
�
��f� c @ s� d Z d d d g Z d d l Z d d d d � Z d d d d � Z Gd d � d e j � Z d
d � Z d d
� Z e
d k r� e � n d S( uU Python interface for the 'lsprof' profiler.
Compatible with the 'profile' module.
u runu runctxu Profilei Ni c C sn t � } d } z, y | j | � } Wn t k
r9 Yn XWd | d k rZ | j | � n | j | � } X| S( u 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( u Profileu Noneu runu
SystemExitu
dump_statsu print_stats( u statementu filenameu sortu profu result( ( u- /opt/alt/python33/lib64/python3.3/cProfile.pyu run s
c C st t � } d } z2 y | j | | | � } Wn t k
r? Yn XWd | d k r` | j | � n | j | � } X| S( u� Run statement under profiler, supplying your own globals and locals,
optionally saving results in filename.
statement and filename have the same semantics as profile.run
N( u Profileu Noneu runctxu
SystemExitu
dump_statsu print_stats( u statementu globalsu localsu filenameu sortu profu result( ( u- /opt/alt/python33/lib64/python3.3/cProfile.pyu runctx'