33 using Bucket = std::pair<agx::Name, agx::Real>;
67 #define SCOPE_PROFILER(a) agxTerrain::ScopeTimerRef ref = new agxTerrain::ScopeTimer(a); 68 #define PRINT_TIMINGS() Profiler::printTimers(); 71 #if defined(USE_EXTENDED_TERRAIN_PROFILING) && USE_EXTENDED_TERRAIN_PROFILING 72 #define GET_TIMESTAMP(varname) agx::UInt64 varname = agx::Timer::getCurrentTick(); 73 #define THREAD_LOG_ITEM( textname, var1, var2 ) agx::Thread::getCurrentThread()->reportSystemJob( var1, var2, textname ); 75 #define GET_TIMESTAMP(varname) 76 #define THREAD_LOG_ITEM( textname, var1, var2 ) agx::HashVector< agx::Name, agx::Real > TimingStorage
AGXTERRAIN_EXPORT void clear()
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
AGXTERRAIN_EXPORT void resetFile(const agx::String &filename)
The HighAccurayTimer class can replace the regular Timer class in high level applications where the n...
std::pair< agx::Name, agx::Real > Bucket
AGXTERRAIN_EXPORT void printTimers(const agx::String &title)
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
Base class providing referencing counted objects.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
ScopeTimer(const agx::Name &name)
AGXTERRAIN_EXPORT void printToFile(agx::Real time, const agx::String &filename)
#define AGXTERRAIN_EXPORT
AGXTERRAIN_EXPORT agx::Real & currentTime()
AGXTERRAIN_EXPORT TimingStorage & getStorage()
agx::HighAccuracyTimer m_timer
AGXTERRAIN_EXPORT void registerTiming(const agx::Name &name, agx::Real value)