Flutter Engine
The Flutter Engine
|
Trace GPU execution times using GL_EXT_disjoint_timer_query on GLES. More...
#include <gpu_tracer_gles.h>
Public Member Functions | |
GPUTracerGLES (const ProcTableGLES &gl, bool enable_tracing) | |
~GPUTracerGLES ()=default | |
void | RecordRasterThread () |
Record the thread id of the raster thread. More... | |
void | MarkFrameStart (const ProcTableGLES &gl) |
Record the start of a frame workload, if one hasn't already been started. More... | |
void | MarkFrameEnd (const ProcTableGLES &gl) |
Record the end of a frame workload. More... | |
Trace GPU execution times using GL_EXT_disjoint_timer_query on GLES.
Note: there are a substantial number of GPUs where usage of the this API is known to cause crashes. As a result, this functionality is disabled by default and can only be enabled in debug/profile mode via a specific opt-in flag that is exposed in the Android manifest.
To enable, add the following metadata to the application's Android manifest: <meta-data android:name="io.flutter.embedding.android.EnableOpenGLGPUTracing" android:value="false" />
Definition at line 27 of file gpu_tracer_gles.h.
impeller::GPUTracerGLES::GPUTracerGLES | ( | const ProcTableGLES & | gl, |
bool | enable_tracing | ||
) |
Definition at line 11 of file gpu_tracer_gles.cc.
|
default |
void impeller::GPUTracerGLES::MarkFrameEnd | ( | const ProcTableGLES & | gl | ) |
Record the end of a frame workload.
Definition at line 75 of file gpu_tracer_gles.cc.
void impeller::GPUTracerGLES::MarkFrameStart | ( | const ProcTableGLES & | gl | ) |
Record the start of a frame workload, if one hasn't already been started.
Definition at line 19 of file gpu_tracer_gles.cc.
void impeller::GPUTracerGLES::RecordRasterThread | ( | ) |
Record the thread id of the raster thread.
Definition at line 39 of file gpu_tracer_gles.cc.