gwnavruntime/basesystem/iperfmarkerinterface.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_IPerfMarkerInterface_H
9 #define Navigation_IPerfMarkerInterface_H
20 class IPerfMarkerInterface
33 virtual void Begin(
const char* name) = 0;
39 virtual void End() = 0;
52 class ScopedPerfMarker
62 #if defined(KY_PERF_MARKERS_ENABLED)
66 #define KY_PERF_MARKER_BEGIN(name) Kaim::IPerfMarkerInterface::BeginMarker(name)
70 #define KY_PERF_MARKER_END() Kaim::IPerfMarkerInterface::EndMarker()
76 #define KY_SCOPED_PERF_MARKER(name) Kaim::ScopedPerfMarker scopedPerfMarker__(name);
80 #define KY_PERF_MARKER_BEGIN(name)
81 #define KY_PERF_MARKER_END()
82 #define KY_SCOPED_PERF_MARKER(name)
84 #endif // defined(KY_PERF_MARKERS_ENABLED)
87 #endif // Navigation_IPerfMarkerInterface_H
static IPerfMarkerInterface *& Instance()
Retrieves the static instance of the IPerfMarkerInterface class managed by the BaseSystem.
Definition: iperfmarkerinterface.h:27
#define KY_NULL
Null value.
Definition: types.h:247
static void BeginMarker(const char *name)
Indicates to the IPerfMarkerInterface that a block of code has begun that it should track...
Definition: iperfmarkerinterface.h:50
Definition: gamekitcrowddispersion.h:20
static void EndMarker()
Indicates to the IPerfMarkerInterface that the currently tracked block of code has been completed...
Definition: iperfmarkerinterface.h:55
virtual void End()=0
Called by instrumented code to indicate that the currently tracked block of code has been completed...
virtual void Begin(const char *name)=0
Called by instrumented code to indicate that a tracked block of code has begun.
An abstract interface for an object that can respond to performance tracking markers.
Definition: iperfmarkerinterface.h:22