AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
ProfilingTools.h File Reference
#include <agx/Thread.h>
#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::ScopeReportSystemJob
 
class  agxTerrain::ScopeTimer
 

Namespaces

namespace  agxTerrain
 The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
 
namespace  agxTerrain::Profiler
 

Macros

#define GET_SCOPE_SYSTEM_JOB(scopeName, varname)
 
#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)
 
#define TIMER_BLOCK(str)
 
#define USE_EXTENDED_TERRAIN_PROFILING   1
 

Typedefs

using agxTerrain::Profiler::Bucket = std::pair< agx::Name, agx::Real >
 
typedef agx::observer_ptr< const ScopeReportSystemJob > agxTerrain::ScopeReportSystemJobConstObserver
 
typedef agx::ref_ptr< const ScopeReportSystemJob > agxTerrain::ScopeReportSystemJobConstRef
 
typedef agx::observer_ptr< ScopeReportSystemJob > agxTerrain::ScopeReportSystemJobObserver
 
typedef agx::ref_ptr< ScopeReportSystemJob > agxTerrain::ScopeReportSystemJobRef
 
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

◆ GET_SCOPE_SYSTEM_JOB

#define GET_SCOPE_SYSTEM_JOB (   scopeName,
  varname 
)

Definition at line 111 of file ProfilingTools.h.

◆ GET_TIMESTAMP

#define GET_TIMESTAMP (   varname)

Definition at line 109 of file ProfilingTools.h.

◆ PRINT_TIMINGS

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

Definition at line 68 of file ProfilingTools.h.

◆ SCOPE_PROFILER

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

Definition at line 67 of file ProfilingTools.h.

◆ THREAD_LOG_ITEM

#define THREAD_LOG_ITEM (   textname,
  var1,
  var2 
)

Definition at line 110 of file ProfilingTools.h.

◆ TIMER_BLOCK

#define TIMER_BLOCK (   str)

Definition at line 112 of file ProfilingTools.h.

◆ USE_EXTENDED_TERRAIN_PROFILING

#define USE_EXTENDED_TERRAIN_PROFILING   1

Definition at line 96 of file ProfilingTools.h.