10 #ifndef AJA_DEBUGSHARE_H 11 #define AJA_DEBUGSHARE_H 164 #define AJA_DEBUG_DESTINATION_NONE 0 166 #define AJA_DEBUG_DESTINATION_DEBUG 0x00000001 167 #define AJA_DEBUG_DESTINATION_CONSOLE 0x00000002 168 #define AJA_DEBUG_DESTINATION_LOG 0x00000004 169 #define AJA_DEBUG_DESTINATION_DRIVER 0x00000008 178 #define AJA_DEBUG_MAGIC_ID AJA_FOURCC('D','B','U','G') 180 #define AJA_DEBUG_VERSION 110 181 #define AJA_DEBUG_UNIT_ARRAY_SIZE 65536 182 #define AJA_DEBUG_SEVERITY_ARRAY_SIZE 64 183 #define AJA_DEBUG_MAX_NUM_STATS 256 184 #define AJA_DEBUG_STAT_DEQUE_SIZE 11 185 #define AJA_DEBUG_MESSAGE_MAX_SIZE 512 186 #define AJA_DEBUG_MESSAGE_RING_SIZE 4096 187 #define AJA_DEBUG_FILE_NAME_MAX_SIZE 512 188 #define AJA_DEBUG_SHARE_NAME "aja-shm-debug" 189 #define AJA_DEBUG_TICK_RATE 1000000 190 #define AJA_DEBUG_STATE_FILE_VERSION 510 199 #pragma pack(push, 16) 286 double Average(
void)
const;
298 bool IncrementCount (
const uint32_t inIncrement = 1,
const bool inRollOver =
true);
305 bool DecrementCount (
const uint32_t inDecrement = 1,
const bool inRollUnder =
true);
308 void SetValue (
const uint32_t inValue);
309 inline uint32_t
GetCurrentValue (
void)
const {
return fCount ? fValues[CurrentValueIndex()] : 0;}
311 inline uint32_t
GetValue (
void)
const {
return IsSimpleCounter() ? fCount : GetCurrentValue();}
315 static std::string StatKeyName (
const int inKey);
316 static inline bool StatKeyHasName (
const int inKey) {
return !StatKeyName(inKey).empty();}
317 static bool SetStatKeyName (
const int inKey,
const std::string & inName);
318 static std::vector<int> NamedStatKeys (
void);
352 #endif // AJA_DEBUGSHARE_H
struct _AJADebugShare AJADebugShare
int CurrentValueIndex(void) const
enum _AJADebugSeverity AJADebugSeverity
enum _AJADebugStats AJADebugStats
#define AJA_DEBUG_MESSAGE_MAX_SIZE
Declares system-dependent import/export macros and libraries.
#define AJA_DEBUG_MAX_NUM_STATS
bool operator!=(const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept
int32_t volatile clientRefCount
struct _AJADebugMessage AJADebugMessage
uint32_t volatile statAllocChanges
uint32_t messageTextCapacity
uint64_t volatile statsMessagesIgnored
uint32_t unitArray[65536]
#define AJA_DEBUG_STAT_DEQUE_SIZE
#define AJA_DEBUG_UNIT_ARRAY_SIZE
enum _AJADebugUnit AJADebugUnit
uint64_t statAllocMask[256/64]
bool operator==(const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept
uint64_t volatile writeIndex
uint64_t volatile statsMessagesAccepted
bool IsSimpleCounter(void) const
uint32_t GetCurrentValue(void) const
uint32_t messageFileNameCapacity
AJADebugMessage messageRing[4096]
#define AJA_DEBUG_MESSAGE_RING_SIZE
uint32_t GetValue(void) const
static bool StatKeyHasName(const int inKey)
#define AJA_DEBUG_FILE_NAME_MAX_SIZE
uint32_t messageRingCapacity
uint32_t reserved[128 - 1 - 1 - 2 *256/64]