Gazebo Common

API Reference

6.0.0~pre2
Profiler.hh File Reference
#include <memory>
#include <string>
#include <gz/common/config.hh>
#include <gz/common/profiler/Export.hh>
#include <gz/common/SingletonT.hh>

Go to the source code of this file.

Classes

class  Profiler
 Used to perform application-wide performance profiling. More...
 
class  ScopedProfile
 Used to provide C++ RAII-style profiling sample. The sample will start on the construction of the ScopedProfile object and stop when the object leaves scope. More...
 

Namespaces

namespace  gz
 Forward declarations for the common classes.
 
namespace  gz::common
 

Macros

#define GZ_PROFILE(name)   ((void) name)
 
#define GZ_PROFILE_BEGIN(name)   ((void) name)
 
#define GZ_PROFILE_END()   ((void) 0)
 
#define GZ_PROFILE_L(name, line)   ((void) name)
 
#define GZ_PROFILE_LOG_TEXT(name)   ((void) name)
 
#define GZ_PROFILE_THREAD_NAME(name)   ((void) name)
 
#define GZ_PROFILER_ENABLE   0
 Always set this variable to some value.
 
#define GZ_PROFILER_VALID    GZ_PROFILER_ENABLE && Profiler::Instance()->Valid()
 Macro to determine if profiler is enabled and has an implementation.
 

Macro Definition Documentation

◆ GZ_PROFILE

#define GZ_PROFILE (   name)    ((void) name)

◆ GZ_PROFILE_BEGIN

#define GZ_PROFILE_BEGIN (   name)    ((void) name)

◆ GZ_PROFILE_END

#define GZ_PROFILE_END ( )    ((void) 0)

◆ GZ_PROFILE_L

#define GZ_PROFILE_L (   name,
  line 
)    ((void) name)

◆ GZ_PROFILE_LOG_TEXT

#define GZ_PROFILE_LOG_TEXT (   name)    ((void) name)

◆ GZ_PROFILE_THREAD_NAME

#define GZ_PROFILE_THREAD_NAME (   name)    ((void) name)

◆ GZ_PROFILER_ENABLE

#define GZ_PROFILER_ENABLE   0

Always set this variable to some value.

◆ GZ_PROFILER_VALID

#define GZ_PROFILER_VALID    GZ_PROFILER_ENABLE && Profiler::Instance()->Valid()

Macro to determine if profiler is enabled and has an implementation.