A class that uses timestamp queries to record the approximate GPU execution time.
More...
#include <gpu_tracer_vk.h>
A class that uses timestamp queries to record the approximate GPU execution time.
Definition at line 18 of file gpu_tracer_vk.h.
◆ GPUTracerVK()
| impeller::GPUTracerVK::GPUTracerVK |
( |
const std::shared_ptr< DeviceHolder > & |
device_holder | ) |
|
|
explicit |
Definition at line 21 of file gpu_tracer_vk.cc.
22 : device_holder_(device_holder) {
23 timestamp_period_ = device_holder_->GetPhysicalDevice()
25 .limits.timestampPeriod;
26 if (timestamp_period_ <= 0) {
◆ ~GPUTracerVK()
| impeller::GPUTracerVK::~GPUTracerVK |
( |
| ) |
|
|
default |
◆ CreateGPUProbe()
| std::unique_ptr< GPUProbe > impeller::GPUTracerVK::CreateGPUProbe |
( |
| ) |
|
Create a GPUProbe to trace the execution of a command buffer on the GPU.
Definition at line 67 of file gpu_tracer_vk.cc.
68 return std::make_unique<GPUProbe>(weak_from_this());
◆ IsEnabled()
| bool impeller::GPUTracerVK::IsEnabled |
( |
| ) |
const |
◆ MarkFrameEnd()
| void impeller::GPUTracerVK::MarkFrameEnd |
( |
| ) |
|
Signal the end of a frame workload.
Definition at line 46 of file gpu_tracer_vk.cc.
51 Lock lock(trace_state_mutex_);
52 current_state_ = (current_state_ + 1) % kTraceStatesSize;
54 auto& state = trace_states_[current_state_];
60 FML_DCHECK(state.pending_buffers == 0u);
62 state.pending_buffers = 0;
63 state.current_index = 0;
◆ MarkFrameStart()
| 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 40 of file gpu_tracer_vk.cc.
41 FML_DCHECK(!in_frame_);
43 raster_thread_id_ = std::this_thread::get_id();
◆ GPUProbe
The documentation for this class was generated from the following files: