Support Forum       G3D Web Page     
Classes | Namespaces | Macros | Typedefs
Profiler.h File Reference

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License. More...

Classes

class  G3D::Profiler::Event
 May have child Events. More...
 
class  G3D::Profiler
 Measures execution time of CPU and GPU events across multiple threads. More...
 

Namespaces

 G3D
 

Macros

#define BEGIN_PROFILER_EVENT(eventName)   { BEGIN_PROFILER_EVENT_WITH_HINT(eventName, "") }
 Defines the beginning of a profilable event. More...
 
#define BEGIN_PROFILER_EVENT_WITH_HINT(eventName, hint)   { static const String& __profilerEventName = (eventName); Profiler::beginEvent(__profilerEventName, __FILE__, __LINE__, hint); }
 
#define DEFINED_GL_NONE   1
 
#define END_PROFILER_EVENT()   Profiler::endEvent()
 
#define GL_NONE   (0)
 

Typedefs

typedef int GLint
 
typedef unsigned int GLuint
 

Detailed Description

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.

Macro Definition Documentation

◆ BEGIN_PROFILER_EVENT

#define BEGIN_PROFILER_EVENT (   eventName)    { BEGIN_PROFILER_EVENT_WITH_HINT(eventName, "") }

Defines the beginning of a profilable event.

Example:

BEGIN_PROFILER_EVENT("MotionBlur");
...
END_PROFILER_EVENT("MotionBlur");

The event name must be a compile-time constant char* or String.

See also
END_PROFILER_EVENT, Profiler, Profiler::beginEvent

◆ BEGIN_PROFILER_EVENT_WITH_HINT

#define BEGIN_PROFILER_EVENT_WITH_HINT (   eventName,
  hint 
)    { static const String& __profilerEventName = (eventName); Profiler::beginEvent(__profilerEventName, __FILE__, __LINE__, hint); }

◆ DEFINED_GL_NONE

#define DEFINED_GL_NONE   1

◆ END_PROFILER_EVENT

#define END_PROFILER_EVENT ( )    Profiler::endEvent()
See also
BEGIN_PROFILER_EVENT, Profiler, Profiler::endEvent

◆ GL_NONE

#define GL_NONE   (0)

Typedef Documentation

◆ GLint

typedef int GLint

◆ GLuint

typedef unsigned int GLuint

documentation generated on Wed Nov 24 2021 08:01:51 using doxygen 1.8.15