| |
- __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
| |