AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ProfilingTools.h File Reference
#include <agxTerrain/export.h>
#include <agx/Referenced.h>
#include <agx/Name.h>
#include <agx/HighAccuracyTimer.h>
#include <agx/HashTable.h>
#include <agx/HashVector.h>
#include <iostream>
#include <iomanip>

Go to the source code of this file.

Classes

class  agxTerrain::ScopeTimer
 

Namespaces

 agxTerrain
 Copyright 2007 - 2018.
 
 agxTerrain::Profiler
 

Macros

#define GET_TIMESTAMP(varname)
 
#define PRINT_TIMINGS()   Profiler::printTimers();
 
#define SCOPE_PROFILER(a)   agxTerrain::ScopeTimerRef ref = new agxTerrain::ScopeTimer(a);
 
#define THREAD_LOG_ITEM(textname, var1, var2)
 

Typedefs

using agxTerrain::Profiler::Bucket = std::pair< agx::Name, agx::Real >
 
typedef agx::observer_ptr
< const ScopeTimer > 
agxTerrain::ScopeTimerConstObserver
 
typedef agx::ref_ptr< const
ScopeTimer > 
agxTerrain::ScopeTimerConstRef
 
typedef agx::observer_ptr
< ScopeTimer > 
agxTerrain::ScopeTimerObserver
 
typedef agx::ref_ptr< ScopeTimer > agxTerrain::ScopeTimerRef
 
typedef agx::HashVector
< agx::Name, agx::Real > 
agxTerrain::Profiler::TimingStorage
 

Functions

AGXTERRAIN_EXPORT void agxTerrain::Profiler::clear ()
 
AGXTERRAIN_EXPORT agx::Real & agxTerrain::Profiler::currentTime ()
 
AGXTERRAIN_EXPORT TimingStorage & agxTerrain::Profiler::getStorage ()
 
AGXTERRAIN_EXPORT void agxTerrain::Profiler::printTimers (const agx::String &title)
 
AGXTERRAIN_EXPORT void agxTerrain::Profiler::printToFile (agx::Real time, const agx::String &filename)
 
AGXTERRAIN_EXPORT void agxTerrain::Profiler::registerTiming (const agx::Name &name, agx::Real value)
 
AGXTERRAIN_EXPORT void agxTerrain::Profiler::resetFile (const agx::String &filename)
 

Macro Definition Documentation

#define GET_TIMESTAMP (   varname)

Definition at line 75 of file ProfilingTools.h.

#define PRINT_TIMINGS ( )    Profiler::printTimers();

Definition at line 68 of file ProfilingTools.h.

#define SCOPE_PROFILER (   a)    agxTerrain::ScopeTimerRef ref = new agxTerrain::ScopeTimer(a);

Definition at line 67 of file ProfilingTools.h.

#define THREAD_LOG_ITEM (   textname,
  var1,
  var2 
)

Definition at line 76 of file ProfilingTools.h.