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... | |
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 22 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 105 of file gpu_tracer_vk.cc.
void impeller::GPUTracerVK::InitializeQueryPool | ( | const ContextVK & | context | ) |
Initialize the set of query pools.
Definition at line 43 of file gpu_tracer_vk.cc.
References impeller::BackendCast< CommandBufferVK, CommandBuffer >::Cast(), impeller::ContextVK::CreateCommandBuffer(), impeller::CommandBufferVK::GetCommandBuffer(), impeller::ContextVK::GetCommandQueue(), impeller::ContextVK::GetDevice(), impeller::kPoolSize, and VALIDATION_LOG.
bool impeller::GPUTracerVK::IsEnabled | ( | ) | const |
Definition at line 71 of file gpu_tracer_vk.cc.
void impeller::GPUTracerVK::MarkFrameEnd | ( | ) |
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 75 of file gpu_tracer_vk.cc.
|
friend |
Definition at line 52 of file gpu_tracer_vk.h.