hotshot
index
/usr/local/lib/python2.5/hotshot/__init__.py
Module Docs

High-perfomance logging profiler, mostly written in C.

 
Package Contents
       
log
stats
stones

 
Classes
       
exceptions.Exception(exceptions.BaseException)
ProfilerError
Profile

 
class Profile
     Methods defined here:
__init__(self, logfn, lineevents=0, linetimings=1)
addinfo(self, key, value)
Add an arbitrary labelled value to the profile log.
close(self)
Close the logfile and terminate the profiler.
fileno(self)
Return the file descriptor of the profiler's log file.
run(self, cmd)
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.
runcall(self, func, *args, **kw)
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.
runctx(self, cmd, globals, locals)
Evaluate an exec-compatible string in a specific
environment.
 
The string is compiled before profiling begins.
start(self)
Start the profiler.
stop(self)
Stop the profiler.

 
class ProfilerError(exceptions.Exception)
    
Method resolution order:
ProfilerError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x8125440>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message