� {fc @ sY d Z d d l Z d d l m Z d d l m Z e d d d �d d d � � YZ d S( s6 High-perfomance logging profiler, mostly written in C.i����N( t ProfilerError( t warnpy3ksO The 'hotshot' module is not supported in 3.x, use the 'profile' module instead.t stackleveli t 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� | r d p d | _ | r' | r' d p* d | _ t j | | j | j � | _ } | j t k r� | j | _ | j | _ | j | _ | j | _ 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/lib64/python2.7/hotshot/__init__.pyt __init__ s c C s | j j � d S( s- Close the logfile and terminate the profiler.N( R R ( R ( ( s( /usr/lib64/python2.7/hotshot/__init__.pyR s c C s | j j � S( s6 Return the file descriptor of the profiler's log file.( R t fileno( R ( ( s( /usr/lib64/python2.7/hotshot/__init__.pyR s c C s | j j � d S( s Start the profiler.N( R R ( R ( ( s( /usr/lib64/python2.7/hotshot/__init__.pyR " s c C s | j j � d S( s Stop the profiler.N( R R ( R ( ( s( /usr/lib64/python2.7/hotshot/__init__.pyR &