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.

_abc_cache = <_weakrefset.WeakSet object at 0x1cd1190>
_abc_negative_cache = <_weakrefset.WeakSet object at 0x1cd1210>
_abc_negative_cache_version = 20
_abc_registry = <_weakrefset.WeakSet object at 0x1cd1150>