deep.api.plugin.python
Simple plugin for deep, decorating some python information.
PythonPlugin
Bases: ResourceProvider
, SnapshotDecorator
, TracepointLogger
Deep python plugin.
This plugin provides the python version to the resource, and the thread name to the attributes.
Source code in deep/api/plugin/python.py
decorate(snapshot_id, context)
Decorate a snapshot with additional data.
:param snapshot_id: the id of the collected snapshot :param context: the action context for this action
:return: the additional attributes to attach
Source code in deep/api/plugin/python.py
log_tracepoint(log_msg, tp_id, ctx_id)
Log the dynamic log message.
:param (str) log_msg: the log message to log :param (str) tp_id: the id of the tracepoint that generated this log :param (str) ctx_id: the id of the context that was created by this tracepoint