10 #ifndef Navigation_QueryStatistics_H
11 #define Navigation_QueryStatistics_H
23 class PerformQueryStatCounter
31 KyUInt32 m_perQueryCounter[QueryType_FirstCustom];
36 QueryStatReport_RelevantOnly,
87 #ifndef KY_BUILD_SHIPPING
93 KY_INLINE
void PerformQueryStatCounter::Increment(
QueryType queryType) { ++m_perQueryCounter[queryType]; }
94 KY_INLINE
KyUInt32 PerformQueryStatCounter::GetCount(
QueryType queryType)
const {
return m_perQueryCounter[queryType]; }
95 KY_INLINE
void PerformQueryStatCounter::Clear()
97 for (
KyUInt32 i = 0; i < QueryType_FirstCustom; ++i)
98 m_perQueryCounter[i] = 0;
107 #ifndef KY_BUILD_SHIPPING
108 KY_INLINE ScopedPerformedQueryCounter::~ScopedPerformedQueryCounter() { ++m_counter; }
111 KY_INLINE ScopedPerformedQueryCounter::~ScopedPerformedQueryCounter() {}
The report will prune PerformQueryStat with no count.
Definition: querystatistics.h:39
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
QueryType
Enumerates all the type of query.
Definition: iquery.h:29
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:64
Definition: gamekitcrowddispersion.h:20
QueryStatReportType
Definition: querystatistics.h:36
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
PerformQueryStat
Definition: iquery.h:66
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36