AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
#include <debugshare.h>
Public Member Functions | |
AJADebugStat () | |
void | Reset (void) |
bool | operator== (const AJADebugStat &inRHS) const |
double | Average (void) const |
uint64_t | Sum (size_t inNum=11) const |
uint32_t | Minimum (size_t inNum=11) const |
uint32_t | Maximum (size_t inNum=11) const |
void | Start (void) |
bool | Stop (void) |
bool | IncrementCount (const uint32_t inIncrement=1, const bool inRollOver=true) |
bool | DecrementCount (const uint32_t inDecrement=1, const bool inRollUnder=true) |
void | SetValue (const uint32_t inValue) |
Static Public Member Functions | |
static std::string | StatKeyName (const int inKey) |
static bool | StatKeyHasName (const int inKey) |
static bool | SetStatKeyName (const int inKey, const std::string &inName) |
static std::vector< int > | NamedStatKeys (void) |
Public Attributes | |
uint32_t | fMin |
uint32_t | fMax |
uint32_t volatile | fCount |
uint64_t | fLastTimeStamp |
uint32_t | fValues [11] |
64-byte structure representing an unsigned 32-bit measurement (timer, counter or data value). As a timer, it stores minimum, maximum and average elapsed time in microseconds. As a data value, it stores minimum, maximum, moving average value, and last update usec timestamp. As a counter, it can increment or decrement, with or without rollover/rollunder.
Definition at line 262 of file debugshare.h.
|
inline |
Definition at line 273 of file debugshare.h.
double AJADebugStat::Average | ( | void | ) | const |
bool AJADebugStat::DecrementCount | ( | const uint32_t | inDecrement = 1 , |
const bool | inRollUnder = true |
||
) |
bool AJADebugStat::IncrementCount | ( | const uint32_t | inIncrement = 1 , |
const bool | inRollOver = true |
||
) |
uint32_t AJADebugStat::Maximum | ( | size_t | inNum = 11 | ) | const |
uint32_t AJADebugStat::Minimum | ( | size_t | inNum = 11 | ) | const |
|
static |
bool AJADebugStat::operator== | ( | const AJADebugStat & | inRHS | ) | const |
|
inline |
Definition at line 275 of file debugshare.h.
|
static |
void AJADebugStat::SetValue | ( | const uint32_t | inValue | ) |
void AJADebugStat::Start | ( | void | ) |
|
inlinestatic |
Definition at line 316 of file debugshare.h.
|
static |
bool AJADebugStat::Stop | ( | void | ) |
uint64_t AJADebugStat::Sum | ( | size_t | inNum = 11 | ) | const |
uint32_t volatile AJADebugStat::fCount |
Update/change count
Definition at line 267 of file debugshare.h.
uint64_t AJADebugStat::fLastTimeStamp |
Timestamp (start time for timer, zero if not running; last update time for counter or data value)
Definition at line 268 of file debugshare.h.
uint32_t AJADebugStat::fMax |
Largest value yet seen. (Fixed at zero and unused for counters.)
Definition at line 266 of file debugshare.h.
uint32_t AJADebugStat::fMin |
Smallest value yet seen. (Fixed at 0xFFFFFFFF and unused for counters.)
Definition at line 265 of file debugshare.h.
uint32_t AJADebugStat::fValues[11] |
Deque that provides an 11-sample moving average. (Unused for counters.)
Definition at line 269 of file debugshare.h.