_hotshot (version )
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hotshot.so
Module Docs

 
Classes
       
__builtin__.object
LogReaderType
ProfilerType

 
class LogReaderType(__builtin__.object)
    logreader(filename) --> log-iterator
Create a log-reader for the timing information file.
 
  Methods defined here:
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__iter__(...)
x.__iter__() <==> iter(x)
close(...)
close()
Close the log file, preventing additional records from being read.
fileno(...)
fileno() -> file descriptor
Returns the file descriptor for the log file, if open.
Raises ValueError if the log file is closed.
next(...)
x.next() -> the next value, or raise StopIteration

Data descriptors defined here:
closed
True if the logreader's input file has already been closed.
info
Dictionary mapping informational keys to lists of values.

 
class ProfilerType(__builtin__.object)
    High-performance profiler object.
 
Methods:
 
close():      Stop the profiler and close the log files.
fileno():     Returns the file descriptor of the log file.
runcall():    Run a single function call with profiling enabled.
runcode():    Execute a code object with profiling enabled.
start():      Install the profiler and return.
stop():       Remove the profiler.
 
Attributes (read-only):
 
closed:       True if the profiler has already been closed.
frametimings: True if ENTER/EXIT events collect timing information.
lineevents:   True if line events are reported to the profiler.
linetimings:  True if line events collect timing information.
 
  Methods defined here:
__getattribute__(...)
x.__getattribute__('name') <==> x.name
addinfo(...)
addinfo(key, value)
Insert an ADD_INFO record into the log.
close(...)
close()
Shut down this profiler and close the log files, even if its active.
fileno(...)
fileno() -> file descriptor
Returns the file descriptor for the log file, if open.
Raises ValueError if the log file is closed.
runcall(...)
runcall(callable[, args[, kw]]) -> callable()
Profile a specific function call, returning the result of that call.
runcode(...)
runcode(code, globals[, locals])
Execute a code object while collecting profile data.  If locals is
omitted, globals is used for the locals as well.
start(...)
start()
Install this profiler for the current thread.
stop(...)
stop()
Remove this profiler from the current thread.

Data descriptors defined here:
closed
True if the profiler's output file has already been closed.
frametimings
lineevents
linetimings

 
Functions
       
coverage(...)
coverage(logfilename) -> profiler
Returns a profiler that doesn't collect any timing information, which is
useful in building a coverage analysis tool.
logreader(...)
logreader(filename) --> log-iterator
Create a log-reader for the timing information file.
profiler(...)
profiler(logfilename[, lineevents[, linetimes]]) -> profiler
Create a new profiler object.
resolution(...)
resolution() -> (gettimeofday-usecs, getrusage-usecs)
Return the resolution of the timers provided by the gettimeofday() and
getrusage() system calls, or -1 if the call is not supported.

 
Data
        WHAT_ADD_INFO = 19
WHAT_DEFINE_FILE = 35
WHAT_DEFINE_FUNC = 67
WHAT_ENTER = 0
WHAT_EXIT = 1
WHAT_LINENO = 2
WHAT_LINE_TIMES = 51
WHAT_OTHER = 3
__version__ = ''