Module _hotshot :: Class ProfilerType
[hide private]
[frames] | no frames]

type ProfilerType

object --+
         |
        ProfilerType

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.

Instance Methods [hide private]
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
addinfo(key, value)
Insert an ADD_INFO record into the log.
 
close()
Shut down this profiler and close the log files, even if its active.
file descriptor
fileno()
Returns the file descriptor for the log file, if open.
callable()
runcall(callable, args=..., kw=...)
Profile a specific function call, returning the result of that call.
 
runcode(code, globals, locals=...)
Execute a code object while collecting profile data.
 
start()
Install this profiler for the current thread.
 
stop()
Remove this profiler from the current thread.
Properties [hide private]
  closed
True if the profiler's output file has already been closed.
  frametimings
  lineevents
  linetimings
Method Details [hide private]

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

fileno()

 

Returns the file descriptor for the log file, if open. Raises ValueError if the log file is closed.

Returns: file descriptor

runcode(code, globals, locals=...)

 

Execute a code object while collecting profile data. If locals is omitted, globals is used for the locals as well.