Add debug buffer to devel
Add debug buffer to Rd53b/Itkpixv2 data processors. This structure is configurable only using compile-time directives in the Rd53bDataProcessor.h
and Itkpixv2DataProcessor.h
files, by setting USE_DEBUG_BUFFER
. Also includes a second compile-time directive, DEBUG_BUFFERSIZE
.
USE_DEBUG_BUFFER
configuration options:
-
#define USE_DEBUG_BUFFER 0
: Disable debug buffer completely, removing it from compiled code. -
#define USE_DEBUG_BUFFER 1
: Enable debug buffer only for when segfaults happen (slows down dataprocessor and increases the memory footprint slightly). -
#define USE_DEBUG_BUFFER 2
: Enable debug buffer for all error messages (expect NS=1, unfinished stream, etc.)
DEBUG_BUFFERSIZE
configuration options:
-
#define DEBUG_BUFFERSIZE <n>
, wheren > 0
. This sets the number of 64-bit streams to save in memory, to be dumped upon reaching an error. Default 20 streams.