Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpuprofiler.h File Reference
#include <deque>
#include <stack>
#include <vector>
#include "base/integral_types.h"
#include "ion/base/staticsafedeclare.h"
#include "ion/gfx/graphicsmanager.h"
#include "ion/profile/calltracemanager.h"
#include "ion/profile/profiling.h"
#include "ion/profile/tracerecorder.h"
Include dependency graph for gpuprofiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ion::gfxprofile::GpuProfiler
 Singleton class that augments CallTraceManager with GPU tracing support. More...
 
class  ion::gfxprofile::ScopedGlTracer
 Traces the GPU start and end times of the GL commands submitted in the same scope. More...
 

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::profile
 
 ion::gfxprofile
 

Macros

#define ION_PROFILE_GPU(group_name)
 This macro can be used in any GL operation scope to trace the resulting GPU work. More...
 

Macro Definition Documentation

#define ION_PROFILE_GPU (   group_name)
Value:
/* Force compilation to fail if group_name is not a literal string */ \
(void) group_name " must be a literal string."; \
int, ION_PROFILING_PASTE3(gpu_scope_event_id_), \
GetScopeEnterEvent("GPU_" group_name))); \
*ION_PROFILING_PASTE3(gpu_scope_event_id_))
Traces the GPU start and end times of the GL commands submitted in the same scope.
Definition: gpuprofiler.h:161
#define ION_DECLARE_SAFE_STATIC_POINTER_WITH_CONSTRUCTOR(type, variable, constructor)
Declare a static non-array pointer and calls a non-default constructor.
CallTraceManager * GetCallTraceManager()
Get the global, static instance of CallTraceManager.
Definition: profiling.cc:25
static GpuProfiler * Get()
Gets the GpuProfiler singleton instance.
Definition: gpuprofiler.cc:26
#define ION_PROFILE_FUNCTION(func_name)
This macro can be used at the top of a function scope to declare the function and create a DefaultSco...
Definition: profiling.h:47
#define ION_PROFILING_PASTE3(x)
Definition: profiling.h:41

This macro can be used in any GL operation scope to trace the resulting GPU work.

The argument must be a literal string.

Definition at line 183 of file gpuprofiler.h.