deep.processor.context.snapshot_action
Handling for snapshot actions.
DeferredSnapshotActionCallback
Bases: ActionCallback
Defer the send action to the end of the line or function.
Source code in deep/processor/context/snapshot_action.py
__init__(action_context, snapshot)
Create a new action callback.
:param action_context: the triggering action context :param snapshot: the generated snapshot
Source code in deep/processor/context/snapshot_action.py
process(ctx, event, frame, arg)
Process a callback.
:param ctx: the context for this trigger :param event: the event :param frame: the frame data :param arg: the arg from settrace :return: True, to keep this callback until next match.
Source code in deep/processor/context/snapshot_action.py
DeferredSnapshotActionResult
Bases: ActionResult
The result of a deferred snapshot action.
Source code in deep/processor/context/snapshot_action.py
__init__(action_context, snapshot)
Create a new snapshot action result.
:param action_context: the action context that created this result :param snapshot: the snapshot result
Source code in deep/processor/context/snapshot_action.py
process(ctx)
Process this result.
:param ctx: the triggering context
:return: an action callback if we need to do something at the 'end', or None
Source code in deep/processor/context/snapshot_action.py
SendSnapshotActionResult
Bases: DeferredSnapshotActionResult
The result of a successful snapshot action.
Source code in deep/processor/context/snapshot_action.py
__init__(action_context, snapshot)
Create a new snapshot action result.
:param action_context: the action context that created this result :param snapshot: the snapshot result
Source code in deep/processor/context/snapshot_action.py
process(ctx)
Process this result.
:param ctx: the triggering context
:return: an action callback if we need to do something at the 'end', or None
Source code in deep/processor/context/snapshot_action.py
SnapshotActionContext
Bases: FrameCollectorContext
, ActionContext
The context to use when capturing a snapshot.
Source code in deep/processor/context/snapshot_action.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
collection_config: VariableProcessorConfig
property
The variable processing config.
log_msg
property
The configured log message on the tracepoint.
max_tp_process_time: int
property
The max time to spend processing a tracepoint.
ts: int
property
The timestamp in nanoseconds for this trigger.
watches
property
The configured watches.
is_app_frame(filename)
Check if the current frame is a user application frame.
:param filename: the frame file name :return: True if add frame, else False
Source code in deep/processor/context/snapshot_action.py
should_collect_vars(current_frame_index)
Check if we can collect data for a frame.
Frame indexes start from 0 (as the current frame) and increase as we go back up the stack.
:param (int) current_frame_index: the current frame index. :return (bool): if we should collect the frame vars.