![]() |
AJA NTV2 SDK
17.6.0.2675
NTV2 SDK 17.6.0.2675
|
Implements the AJADebug class. More...
#include "ajabase/common/common.h"#include "ajabase/system/atomic.h"#include "ajabase/system/debug.h"#include "ajabase/system/memory.h"#include "ajabase/system/lock.h"#include "ajabase/system/process.h"#include "ajabase/system/system.h"#include "ajabase/system/systemtime.h"#include "ajabase/system/thread.h"#include <assert.h>#include <string.h>#include <stdio.h>#include <time.h>#include <iostream>#include <iomanip>#include <map>Go to the source code of this file.
Macros | |
| #define | addDebugGroupToLabelVector(x) sGroupLabelVector.push_back(#x) |
| #define | STAT_BIT_SHIFT (1ULL<<(inKey%64)) |
| #define | STAT_BIT_TEST (spShare->statAllocMask[inKey/(AJA_DEBUG_MAX_NUM_STATS/64)] & STAT_BIT_SHIFT) |
| #define | IS_STAT_BAD !STAT_BIT_TEST |
| #define | STAT_BIT_SET spShare->statAllocMask[inKey/(AJA_DEBUG_MAX_NUM_STATS/64)] |= STAT_BIT_SHIFT |
| #define | STAT_BIT_CLEAR spShare->statAllocMask[inKey/(AJA_DEBUG_MAX_NUM_STATS/64)] &= 0xFFFFFFFFFFFFFFFF - STAT_BIT_SHIFT |
| #define | HEX0N(__x__, __n__) std::hex << std::uppercase << std::setw(int(__n__)) << std::setfill('0') << (__x__) << std::dec << std::setfill(' ') << std::nouppercase |
Typedefs | |
| typedef map< int, string > | StatKeyNameMap |
| typedef pair< int, string > | StatKeyNamePair |
| typedef StatKeyNameMap::iterator | StatKeyNameMapIter |
| typedef StatKeyNameMap::const_iterator | StatKeyNameMapConstIter |
Functions | |
| int64_t | debug_time (void) |
| uint64_t | report_common (int32_t index, int32_t severity, const char *pFileName, int32_t lineNumber, uint64_t &writeIndex, int32_t &messageIndex) |
| std::string | AJAStatusToString (const AJAStatus inStatus, const bool inDetailed) |
| static bool | gStatKeyToStrReady (false) |
| static void | InitStatKeyNames (void) |
| std::ostream & | operator<< (std::ostream &oss, const AJADebugStat &inStat) |
Variables | |
| static std::vector< std::string > | sGroupLabelVector |
| static const std::string | sSeverityString [] = {"emergency", "alert", "assert", "error", "warning", "notice", "info", "debug"} |
| static AJALock | sLock |
| static AJADebugShare * | spShare = NULL |
| static bool | sDebug = false |
| static StatKeyNameMap | gStatKeyToStr |
| static AJALock | gStatKeyToStrLock |
Implements the AJADebug class.
Definition in file debug.cpp.
| #define addDebugGroupToLabelVector | ( | x | ) | sGroupLabelVector.push_back(#x) |
| #define HEX0N | ( | __x__, | |
| __n__ | |||
| ) | std::hex << std::uppercase << std::setw(int(__n__)) << std::setfill('0') << (__x__) << std::dec << std::setfill(' ') << std::nouppercase |
| #define IS_STAT_BAD !STAT_BIT_TEST |
| #define STAT_BIT_CLEAR spShare->statAllocMask[inKey/(AJA_DEBUG_MAX_NUM_STATS/64)] &= 0xFFFFFFFFFFFFFFFF - STAT_BIT_SHIFT |
| #define STAT_BIT_SET spShare->statAllocMask[inKey/(AJA_DEBUG_MAX_NUM_STATS/64)] |= STAT_BIT_SHIFT |
| #define STAT_BIT_TEST (spShare->statAllocMask[inKey/(AJA_DEBUG_MAX_NUM_STATS/64)] & STAT_BIT_SHIFT) |
| typedef map<int,string> StatKeyNameMap |
| typedef StatKeyNameMap::const_iterator StatKeyNameMapConstIter |
| typedef StatKeyNameMap::iterator StatKeyNameMapIter |
| typedef pair<int,string> StatKeyNamePair |
| [in] | inStatus | The AJAStatus value of interest. |
| [in] | inDetailed | Optionally specifies the type of string content to return. If false, the default, returns the literal enum (e.g. "AJA_STATUS_FAIL"). If true, returns a description (e.g. "Failed"). |
|
static |
| std::ostream& operator<< | ( | std::ostream & | oss, |
| const AJADebugStat & | inStat | ||
| ) |
|
inline |
|
static |
|
static |