Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/hotshot/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/hotshot/__init__.pyo |
³ò h”Rc @ s9 d Z d d k Z d d k l Z d d d „ ƒ YZ d S( s6 High-perfomance logging profiler, mostly written in C.iÿÿÿÿN( t ProfilerErrort Profilec B s_ e Z d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( i 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 linetimingst _hotshott profilert _proft __class__R t closet startt stopt addinfo( t selft logfnR R t p( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyt __init__ s c C s | i i ƒ d S( s- Close the logfile and terminate the profiler.N( R R ( R ( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR s c C s | i i ƒ S( s6 Return the file descriptor of the profiler's log file.( R t fileno( R ( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR s c C s | i i ƒ d S( s Start the profiler.N( R R ( R ( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR s c C s | i i ƒ d S( s Stop the profiler.N( R R ( R ( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR $ 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( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR ( s c C s( d 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. iÿÿÿÿN( t __main__t __dict__t runctx( R t cmdR t dict( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyt 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 exec( t compileR t runcode( R R t globalst localst code( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR : 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. ( R t runcall( R t funct argst kw( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR D s ( t __name__t __module__R R R R R R R R R ( ( ( s, /usr/local/lib/python2.5/hotshot/__init__.pyR s ( ( t __doc__R R R ( ( ( s, /usr/local/lib/python2.5/hotshot/__init__.pys <module> s