ug4
profiler.h File Reference
#include <ostream>

Go to the source code of this file.

Namespaces

 ProfilerDummy
 

Macros

#define CPU_FREQ_BEGIN_AUTO_END(name, file, line)
 
#define CPU_FREQ_END()
 
#define PROFILE_BEGIN(name)   CPU_FREQ_BEGIN_AUTO_END(apn_##name, __FILE__, __LINE__);
 
#define PROFILE_BEGIN_GROUP(name, groups)   PROFILE_BEGIN(name)
 
#define PROFILE_END()   CPU_FREQ_END();
 
#define PROFILE_END_(name)
 
#define PROFILE_FUNC()   CPU_FREQ_BEGIN_AUTO_END(apn##__FUNCTION__, __FILE__, __LINE__);
 
#define PROFILE_FUNC_GROUP(groups)   PROFILE_FUNC()
 
#define PROFILER_OUTPUT   ProfilerDummy::Output
 
#define PROFILER_UPDATE   ProfilerDummy::Update
 

Functions

bool ProfilerDummy::Output (const char *a=NULL)
 
bool ProfilerDummy::Output (std::ostream &a)
 
void ProfilerDummy::Update (float a=0.0f)
 

Macro Definition Documentation

◆ CPU_FREQ_BEGIN_AUTO_END

#define CPU_FREQ_BEGIN_AUTO_END (   name,
  file,
  line 
)

◆ CPU_FREQ_END

#define CPU_FREQ_END ( )

◆ PROFILE_BEGIN

#define PROFILE_BEGIN (   name)    CPU_FREQ_BEGIN_AUTO_END(apn_##name, __FILE__, __LINE__);

◆ PROFILE_BEGIN_GROUP

#define PROFILE_BEGIN_GROUP (   name,
  groups 
)    PROFILE_BEGIN(name)

◆ PROFILE_END

#define PROFILE_END ( )    CPU_FREQ_END();

◆ PROFILE_END_

#define PROFILE_END_ (   name)

◆ PROFILE_FUNC

#define PROFILE_FUNC ( )    CPU_FREQ_BEGIN_AUTO_END(apn##__FUNCTION__, __FILE__, __LINE__);

◆ PROFILE_FUNC_GROUP

#define PROFILE_FUNC_GROUP (   groups)    PROFILE_FUNC()

◆ PROFILER_OUTPUT

#define PROFILER_OUTPUT   ProfilerDummy::Output

◆ PROFILER_UPDATE

#define PROFILER_UPDATE   ProfilerDummy::Update