deep.processor.frame_config
Configuration options for tracepoint processing.
FrameProcessorConfig
This is the config for a data collection.
Source code in deep/processor/frame_config.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 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 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
|
frame_type: str
property
Get the frame type.
:return: the frame type
max_collection_size: int
property
Get the maximum size of a collection.
Collections larger than this should be truncated.
:return: the maximum collection size
max_string_length: int
property
Get the maximum length of a string.
Strings longer than this value should be truncated.
:return: the maximum string length
max_tp_process_time: int
property
Get the maximum time we should spend processing a tracepoint.
:return: the max time
max_var_depth: int
property
Get the maximum depth of variables to process.
Values deeper than this will be ignored.
:return: the maximum variable depth
max_variables: int
property
Get the maximum number of variables to process.
Any additional variables will not be processed or attached to the snapshots.
:return: the maximum number of variables
max_watch_vars: int
property
Get the maximum number of variables to collect for a watch.
:return: the max variables
stack_type: str
property
Get the stack type.
:return: the stack type
__init__()
Create a new config.
Source code in deep/processor/frame_config.py
close()
Close the config, to check for any unconfirmed parts, and set them to defaults.
Source code in deep/processor/frame_config.py
process_tracepoint(tp)
Process a tracepoint into this config.
Each tracepoint can have a different config we want to re-configure to the lowest impact. e.g. if all tracepoints are single frame, then do not collect all frames. :param tp: the tracepoint to process
Source code in deep/processor/frame_config.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.