#include <log.h>
|
| AJATimeLog () |
|
| AJATimeLog (const char *tag, int unit=AJA_DebugUnit_Critical) |
|
| AJATimeLog (const std::string &tag, int unit=AJA_DebugUnit_Critical) |
|
virtual | ~AJATimeLog () |
|
void | Reset () |
|
void | PrintReset () |
|
void | PrintResetIf (bool bEnable=true) |
|
void | PrintDelta (bool bReset=true) |
|
void | PrintDelta (const char *addedTag, bool bReset=true) |
|
void | PrintDelta (uint64_t threashold, const char *addedTag, bool bReset) |
|
void | PrintDelta (const std::string &addedTag, bool bReset=true) |
|
void | PrintDeltaIf (bool bEnable, bool bReset=true) |
|
void | PrintDeltaIf (bool bEnable, const char *addedTag, bool bReset=true) |
|
void | PrintDeltaIf (bool bEnable, const std::string &addedTag, bool bReset=true) |
|
int32_t | GetDelta (bool bReset=true) |
|
int32_t | GetLastDelta () |
|
int32_t | GetLastDeltaMs () |
|
void | PrintValue (int64_t val) |
|
void | PrintValue (int64_t val, const char *addedTag) |
|
void | PrintValue (int64_t val, const std::string &addedTag) |
|
void | Print (const char *str) |
|
void | Print (const std::string &str) |
|
int | GetUnit () |
|
void | SetUnit (int unit) |
|
std::string | GetTag () |
|
void | SetTag (const char *tag) |
|
Definition at line 190 of file log.h.
◆ AJATimeLog() [1/3]
AJATimeLog::AJATimeLog |
( |
| ) |
|
◆ AJATimeLog() [2/3]
◆ AJATimeLog() [3/3]
◆ ~AJATimeLog()
AJATimeLog::~AJATimeLog |
( |
| ) |
|
|
virtual |
◆ GetDelta()
int32_t AJATimeLog::GetDelta |
( |
bool |
bReset = true | ) |
|
Get delta-time since last reset.
- Parameters
-
[in] | bReset | true if time is reset after get |
Definition at line 235 of file log.cpp.
◆ GetLastDelta()
int32_t AJATimeLog::GetLastDelta |
( |
| ) |
|
|
inline |
◆ GetLastDeltaMs()
int32_t AJATimeLog::GetLastDeltaMs |
( |
| ) |
|
|
inline |
◆ GetTag()
std::string AJATimeLog::GetTag |
( |
| ) |
|
|
inline |
◆ GetUnit()
int AJATimeLog::GetUnit |
( |
| ) |
|
|
inline |
◆ Print() [1/2]
void AJATimeLog::Print |
( |
const char * |
str | ) |
|
◆ Print() [2/2]
void AJATimeLog::Print |
( |
const std::string & |
str | ) |
|
|
inline |
◆ PrintDelta() [1/4]
void AJATimeLog::PrintDelta |
( |
bool |
bReset = true | ) |
|
Print tag, appended tag, and delta-time since last reset.
- Parameters
-
[in] | bReset | true if time is reset after print |
Definition at line 228 of file log.cpp.
◆ PrintDelta() [2/4]
void AJATimeLog::PrintDelta |
( |
const char * |
addedTag, |
|
|
bool |
bReset = true |
|
) |
| |
◆ PrintDelta() [3/4]
void AJATimeLog::PrintDelta |
( |
const std::string & |
addedTag, |
|
|
bool |
bReset = true |
|
) |
| |
|
inline |
◆ PrintDelta() [4/4]
void AJATimeLog::PrintDelta |
( |
uint64_t |
threashold, |
|
|
const char * |
addedTag, |
|
|
bool |
bReset |
|
) |
| |
◆ PrintDeltaIf() [1/3]
void AJATimeLog::PrintDeltaIf |
( |
bool |
bEnable, |
|
|
bool |
bReset = true |
|
) |
| |
|
inline |
Optional print tag, appended tag, and delta-time since last reset.
- Parameters
-
[in] | bEnable | true to print, false inhibits printing |
[in] | bReset | true if time is reset after print |
Definition at line 226 of file log.h.
◆ PrintDeltaIf() [2/3]
void AJATimeLog::PrintDeltaIf |
( |
bool |
bEnable, |
|
|
const char * |
addedTag, |
|
|
bool |
bReset = true |
|
) |
| |
|
inline |
◆ PrintDeltaIf() [3/3]
void AJATimeLog::PrintDeltaIf |
( |
bool |
bEnable, |
|
|
const std::string & |
addedTag, |
|
|
bool |
bReset = true |
|
) |
| |
|
inline |
◆ PrintReset()
void AJATimeLog::PrintReset |
( |
| ) |
|
Print does reset along with print
Definition at line 221 of file log.cpp.
◆ PrintResetIf()
void AJATimeLog::PrintResetIf |
( |
bool |
bEnable = true | ) |
|
|
inline |
◆ PrintValue() [1/3]
void AJATimeLog::PrintValue |
( |
int64_t |
val | ) |
|
Optional print tag, appended tag, and delta-time since last reset.
- Parameters
-
Definition at line 258 of file log.cpp.
◆ PrintValue() [2/3]
void AJATimeLog::PrintValue |
( |
int64_t |
val, |
|
|
const char * |
addedTag |
|
) |
| |
◆ PrintValue() [3/3]
void AJATimeLog::PrintValue |
( |
int64_t |
val, |
|
|
const std::string & |
addedTag |
|
) |
| |
|
inline |
◆ Reset()
void AJATimeLog::Reset |
( |
| ) |
|
reset timer.
Definition at line 214 of file log.cpp.
◆ SetTag()
void AJATimeLog::SetTag |
( |
const char * |
tag | ) |
|
|
inline |
◆ SetUnit()
void AJATimeLog::SetUnit |
( |
int |
unit | ) |
|
|
inline |
◆ _lastDelta
uint64_t AJATimeLog::_lastDelta |
|
protected |
◆ _tag
std::string AJATimeLog::_tag |
|
protected |
◆ _time
uint64_t AJATimeLog::_time |
|
protected |
◆ _unit
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/system/log.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/system/log.cpp