profiler.h File Reference

Classes

class  ProfilerConstant
 
class  Profiler
 
class  ProfileManagerInterface
 
class  ProfilingPoint
 
struct  ProfilingPointHelper< PROFILING_POINT >
 

Namespaces

 maxon
 

Macros

#define PROFILER_POINT(type, ...)
 
#define PRIVATE_PROFILER_POINT(counter, type, ...)
 
#define PRIVATE_PROFILER_POINT2(counter, type, ...)
 
#define PROFILER_METHOD_ENTER(...)
 
#define PROFILER_METHOD_LEAVE(...)
 
#define PROFILER_SCOPE_ENTER(...)
 
#define PROFILER_SCOPE_LEAVE(...)
 
#define PROFILER_DELTA(...)
 
#define PROFILER_METHOD(...)
 
#define PROFILER_SCOPE(...)
 
#define PROFILER_START(enable)
 
#define PROFILER_STOP_AND_REPORT(...)
 

Enumerations

enum class  PROFILER_POINT_TYPE {
  NONE ,
  METHOD_ENTER ,
  METHOD_LEAVE ,
  SCOPE_ENTER ,
  SCOPE_LEAVE ,
  DELTA
}
 
enum class  PROFILER_STATE {
  DISABLED ,
  ENABLED_METHOD_SCOPE ,
  ENABLED_ALL
}
 
enum class  PROFILER_CLOCK_MODE {
  NORMAL ,
  SIMULATED
}
 

Functions

enum maxon::PROFILER_POINT_TYPE MAXON_ENUM_LIST (PROFILER_POINT_TYPE)
 
enum maxon::PROFILER_STATE MAXON_ENUM_LIST (PROFILER_STATE)
 
enum maxon::PROFILER_CLOCK_MODE MAXON_ENUM_LIST (PROFILER_CLOCK_MODE)
 
 MAXON_DECLARATION (maxon::Profiler *, ProfilerInstance, "net.maxon.profiler")
 

Variables

 NONE
 
 METHOD_ENTER
 
 METHOD_LEAVE
 
 SCOPE_ENTER
 
 SCOPE_LEAVE
 
 DELTA
 
 DISABLED
 
 ENABLED_METHOD_SCOPE
 
 ENABLED_ALL
 
 NORMAL
 
 SIMULATED
 
Bool g_enableInCodeProfiler
 
Bool g_enableProfilerDumpRegistry
 
Bool g_enableProfilerDumpRegistryErrors
 
Bool g_enableProfilerGetMethodNameTrace
 

Macro Definition Documentation

◆ PROFILER_POINT

#define PROFILER_POINT (   type,
  ... 
)

◆ PRIVATE_PROFILER_POINT

#define PRIVATE_PROFILER_POINT (   counter,
  type,
  ... 
)

◆ PRIVATE_PROFILER_POINT2

#define PRIVATE_PROFILER_POINT2 (   counter,
  type,
  ... 
)

◆ PROFILER_METHOD_ENTER

#define PROFILER_METHOD_ENTER (   ...)

◆ PROFILER_METHOD_LEAVE

#define PROFILER_METHOD_LEAVE (   ...)

◆ PROFILER_SCOPE_ENTER

#define PROFILER_SCOPE_ENTER (   ...)

◆ PROFILER_SCOPE_LEAVE

#define PROFILER_SCOPE_LEAVE (   ...)

◆ PROFILER_DELTA

#define PROFILER_DELTA (   ...)

◆ PROFILER_METHOD

#define PROFILER_METHOD (   ...)

◆ PROFILER_SCOPE

#define PROFILER_SCOPE (   ...)

◆ PROFILER_START

#define PROFILER_START (   enable)

Allow to enable (or disable) the profiler. All trace points are ignored if profiler is not enabled.

◆ PROFILER_STOP_AND_REPORT

#define PROFILER_STOP_AND_REPORT (   ...)

Stops a profiling session and dump the results to the maxon console. After a stop, PROFILER_START must be called again to restart profiling. The macro accepts a string argument which will be part of the profiler trace report header. You can use this to pass a custom formatted string which will contain details about the capture context, for example how many vertices or polygons were processed by the method, etc.

Variable Documentation

◆ NONE

NONE

Unspecified.

◆ METHOD_ENTER

METHOD_ENTER

Enter Method Scope.

◆ METHOD_LEAVE

METHOD_LEAVE

Leave Method Scope.

◆ SCOPE_ENTER

SCOPE_ENTER

Enter Scope.

◆ SCOPE_LEAVE

SCOPE_LEAVE

Leave Scope.

◆ DELTA

DELTA

< Delta From Last Visited Point.

◆ DISABLED

DISABLED

Disabled.

◆ ENABLED_METHOD_SCOPE

ENABLED_METHOD_SCOPE

Enabled for METHOD_ENTER and METHOD_LEAVE point types.

◆ ENABLED_ALL

ENABLED_ALL

< Enabled for all point types.

◆ NORMAL

NORMAL

Use the system clock.

◆ SIMULATED

SIMULATED

< Use a simulated clock for profiling purpose