Flutter Engine
The Flutter Engine
|
A class that uses timestamp queries to record the approximate GPU execution time. More...
#include <gpu_tracer_vk.h>
Public Member Functions | |
GPUTracerVK (std::weak_ptr< ContextVK > context, bool enable_gpu_tracing) | |
~GPUTracerVK ()=default | |
std::unique_ptr< GPUProbe > | CreateGPUProbe () |
Create a GPUProbe to trace the execution of a command buffer on the GPU. More... | |
void | MarkFrameStart () |
Signal the start of a frame workload. More... | |
void | MarkFrameEnd () |
Signal the end of a frame workload. More... | |
bool | IsEnabled () const |
void | InitializeQueryPool (const ContextVK &context) |
Initialize the set of query pools. More... | |
Private Member Functions | |
size_t current_state_ | IPLR_GUARDED_BY (trace_state_mutex_)=0u |
Friends | |
class | GPUProbe |
A class that uses timestamp queries to record the approximate GPU execution time.
To enable, add the following metadata to the application's Android manifest: <meta-data android:name="io.flutter.embedding.android.EnableVulkanGPUTracing" android:value="false" />
Definition at line 26 of file gpu_tracer_vk.h.
impeller::GPUTracerVK::GPUTracerVK | ( | std::weak_ptr< ContextVK > | context, |
bool | enable_gpu_tracing | ||
) |
Definition at line 25 of file gpu_tracer_vk.cc.
|
default |
std::unique_ptr< GPUProbe > impeller::GPUTracerVK::CreateGPUProbe | ( | ) |
Create a GPUProbe to trace the execution of a command buffer on the GPU.
Definition at line 108 of file gpu_tracer_vk.cc.
void impeller::GPUTracerVK::InitializeQueryPool | ( | const ContextVK & | context | ) |
Initialize the set of query pools.
Definition at line 46 of file gpu_tracer_vk.cc.
|
privatepure virtual |
bool impeller::GPUTracerVK::IsEnabled | ( | ) | const |
Definition at line 74 of file gpu_tracer_vk.cc.
void impeller::GPUTracerVK::MarkFrameEnd | ( | ) |
Signal the end of a frame workload.
Definition at line 87 of file gpu_tracer_vk.cc.
void impeller::GPUTracerVK::MarkFrameStart | ( | ) |
Signal the start of a frame workload.
Any cmd buffers that are created after this call and before [MarkFrameEnd] will be attributed to the current frame.
Definition at line 78 of file gpu_tracer_vk.cc.
|
friend |
Definition at line 52 of file gpu_tracer_vk.h.