gwnavruntime/visualdebug/internal/visualdebugstat.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_VisualDebugStat_H
10 #define Navigation_VisualDebugStat_H
23 class VisualDebugStats
27 : m_name(name), m_current(current), m_average(average), m_max(max), m_min(min) {}
37 class VisualDebugSingleUInt32
40 VisualDebugSingleUInt32(
const char* name,
KyUInt32 value)
41 : m_name(name), m_value(value)
49 class VisualDebugSingleInt32
52 VisualDebugSingleInt32(
const char* name,
KyInt32 value)
53 : m_name(name), m_value(value) {}
60 class VisualDebugSingleFloat32
63 VisualDebugSingleFloat32(
const char* name,
KyFloat32 value)
64 : m_name(name), m_value(value) {}
72 class VisualDebugSingleString
75 VisualDebugSingleString(
const char* name,
const char* value)
76 : m_name(name), m_value(value) {}
82 class VisualDebugStatGroup
86 VisualDebugStatGroup() : m_name("") {}
88 VisualDebugStatGroup(
const char* name) : m_name(name) {}
90 void AddUInt32(
const char* statName,
KyUInt32 value)
91 { m_singleUInt32.PushBack(VisualDebugSingleUInt32(statName, value)); }
93 void AddInt32(
const char* statName,
KyInt32 value)
94 { m_singleInt32.PushBack(VisualDebugSingleInt32(statName, value)); }
96 void AddFloat32(
const char* statName,
KyFloat32 value)
97 { m_singleFloat32.PushBack(VisualDebugSingleFloat32(statName, value)); }
99 void AddString(
const char* statName, String value)
100 { m_singleString.PushBack(VisualDebugSingleString(statName, value)); }
103 { m_stats.PushBack(VisualDebugStats(statName, value, average, max, min)); }
105 void Map(BlobFieldsMapping& mapping);
109 KyArray<VisualDebugStats> m_stats;
110 KyArray<VisualDebugSingleUInt32> m_singleUInt32;
111 KyArray<VisualDebugSingleInt32> m_singleInt32;
112 KyArray<VisualDebugSingleFloat32> m_singleFloat32;
113 KyArray<VisualDebugSingleString> m_singleString;
117 class SentBlobTypeStats
121 SentBlobTypeStats(const
char* name);
127 void SetMinMax(
KyUInt32 sendSize );
134 BlobMultiField32Mapping m_statMapping;
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43