External monitors¶
- class pikos.external.python_cprofiler.PythonCProfiler(*args, **kwrds)[source]¶
Bases: cProfile.Profile, pikos.monitors.monitor.Monitor
The normal python Profile subclassed and adapted to work with the pikos Monitor decorator.
The class fully supports the Monitor decorator for functions and generators but does not support recorders.
Note
Due to the function wrapping a small overhead is expected especially if the decorated function is recursive calls. The wrapper function and the __enter__ and __exit__ methods of the context manager might also appear in the list of functions that have been called.
- class pikos.external.yappi_profiler.YappiProfiler(recorder=None, builtins=False)[source]¶
Bases: pikos.monitors.monitor.Monitor
A pikos compatible profiler class using the yappi library.
Private
- _buildins : bool
- Boolean to enable.disable profiling of the buildins.
The class partially supports the Monitor decorator for functions (not generators) but does not support recorders.
Note
The class mirrors the module interface. Please refer to the online documentation of the yappi module for information and usage of the interface (http://code.google.com/p/yappi/).