Bases: pikos.monitors.monitor.Monitor
Record python function events.
The class hooks on the setprofile function to receive function events and record them.
Private
A recorder object that implementes the AbstractRecorder interface.
An instance of the ProfilerFunctions utility class that is used to set and unset the setprofile function as required by the monitor.
The current zero based record index. Each function event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
Initialize the monitoring class.
Parameters: | recorder (object) – A subclass of AbstractRecorder or a class that implements the same interface to handle the values to be logged. |
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will set the setprofile hooks and initialize the recorder.
Bases: pikos.monitors.monitor.Monitor
Record python function events.
The class hooks on the setprofile function to receive function events and record them.
Private
A recorder object that implementes the AbstractRecorder interface.
An instance of the ProfilerFunctions utility class that is used to set and unset the setprofile function as required by the monitor.
The current zero based record index. Each function event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
Initialize the monitoring class.
Parameters: |
|
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will set the setprofile hooks and initialize the recorder.
Exit the monitor context.
The last time the method is called (the context is exited) it will unset the setprofile hooks and finalize the recorder.
Record the current function event.
Called on function events, it will retrieve the necessary information from the frame, create a FunctionRecord and send it to the recorder.
Bases: pikos.monitors.function_memory_monitor.FunctionMemoryRecord
Bases: pikos.monitors.monitor.Monitor
Record process memory on python function events.
The class hooks on the setprofile function to receive function events and record the current process memory when they happen.
Private
A recorder object that implementes the AbstractRecorder interface.
An instance of the ProfilerFunctions utility class that is used to set and unset the setprofile function as required by the monitor.
The current zero based record index. Each function event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
An instanse of psutil.Process for the current process, used to get memory information in a platform independent way.
Initialize the monitoring class.
Parameters: | recorder (object) – A subclass of AbstractRecorder or a class that implements the same interface to handle the values to be logged. |
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will initialize the Process class, set the setprofile hooks and initialize the recorder.
Bases: pikos.monitors.focused_function_mixin.FocusedFunctionMixin, pikos.monitors.function_memory_monitor.FunctionMemoryMonitor
Record process memory on python function events.
The class hooks on the setprofile function to receive function events and record while inside the provided functions the current process memory when they happen.
Public
A set of function or method objects inside which recording will take place.
Private
A recorder object that implements the AbstractRecorder interface.
An instance of the ProfilerFunctions utility class that is used to set and unset the setprofile function as required by the monitor.
The current zero based record index. Each function event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
An instance of psutil.Process for the current process, used to get memory information in a platform independent way.
A dictionary of KeepTrack instances associated with the code object of each function in functions. It is used to keep track and check that we are inside the execution of one these functions when we record data.
Initialize the monitoring class.
Parameters: |
|
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will initialize the Process class, set the setprofile hooks and initialize the recorder.
Bases: pikos.monitors.monitor.Monitor
Record python line events.
The class hooks on the settrace function to receive trace events and record when a line of code is about to be executed.
Private
A recorder object that implementes the AbstractRecorder interface.
An instance of the TraceFunctionManager utility class that is used to set and unset the settrace function as required by the monitor.
The current zero based record index. Each line trace event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
Initialize the monitoring class.
Parameters: | recorder (object) – A subclass of AbstractRecorder or a class that implements the same interface to handle the values to be recorded. |
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will set the settrace hook and initialize the recorder.
Bases: pikos.monitors.focused_line_mixin.FocusedLineMixin, pikos.monitors.line_monitor.LineMonitor
Record python line events.
The class hooks on the settrace function to receive trace events and record when a line of code is about to be executed. The events are recorded only when the interpreter is working inside the functions that are provided in the functions attribute.
Public
A set of function or method objects inside which recording will take place.
Private
A recorder object that implementes the AbstractRecorder interface.
An instance of the TraceFunctionManager utility class that is used to set and unset the settrace function as required by the monitor.
The current zero based record index. Each line trace event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
A dictionary of KeepTrack instances associated with the code object of each function in functions. It is used to keep track and check that we are inside the execution of one these functions when we record data.
Initialize the monitoring class.
Parameters: |
|
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will set the settrace hook and initialize the recorder.
Exit the monitor context.
The last time the method is called (the context is exited) it will unset the settrace hook and finalize the recorder.
Bases: pikos.monitors.monitor.Monitor
Record process memory on python function events.
The class hooks on the settrace function to receive trace events and record the current process memory when a line of code is about to be executed.
Private
A recorder object that implementes the AbstractRecorder interface.
An instance of the TraceFunctionManager utility class that is used to set and unset the settrace function as required by the monitor.
The current zero based record index. Each function event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
An instanse of psutil.Process for the current process, used to get memory information in a platform independent way.
Initialize the monitoring class.
Parameters: | recorder (object) – A subclass of AbstractRecorder or a class that implements the same interface to handle the values to be recorded. |
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will initialize the Process class, set the settrace hook and initialize the recorder.
Bases: pikos.monitors.focused_line_mixin.FocusedLineMixin, pikos.monitors.line_memory_monitor.LineMemoryMonitor
Record process memory on python function events.
The class hooks on the settrace function to receive trace events and record the current process memory when a line of code is about to be executed. The events are recorded only when the interpreter is working inside the functions that are provided in the functions attribute.
Public
A set of function or method objects inside which recording will take place.
Private
A recorder object that implements the AbstractRecorder interface.
An instance of the TraceFunctionManager utility class that is used to set and unset the settrace function as required by the monitor.
The current zero based record index. Each function event will increase the index by one.
An instance of the keep_track utility class to keep track of recursive calls to the monitor’s __enter__() and __exit__() methods.
An instanse of psutil.Process for the current process, used to get memory information in a platform independent way.
Initialize the monitoring class.
Parameters: |
|
---|
Enter the monitor context.
The first time the method is called (the context is entered) it will initialize the Process class, set the settrace hook and initialize the recorder.