| Flutter Impeller |

Public Member Functions | Friends | List of all members
impeller::GPUProbe Class Reference

`#include <gpu_tracer_vk.h>`

## Public Member Functions
| GPUProbe (const std::weak_ptr< GPUTracerVK > &tracer)
| GPUProbe (GPUProbe &&)=delete
GPUProbe & | operator= (GPUProbe &&)=delete
| ~GPUProbe ()
void | RecordCmdBufferStart (const vk::CommandBuffer &buffer)
| Record a timestamp query into the provided cmd buffer to record start time. More...
void | RecordCmdBufferEnd (const vk::CommandBuffer &buffer)
| Record a timestamp query into the provided cmd buffer to record end time. More...

## Friends
class | GPUTracerVK

## Detailed Description

Definition at line 101 of file gpu_tracer_vk.h.

## Constructor & Destructor Documentation

## ◆ GPUProbe() [1/2]

impeller::GPUProbe::GPUProbe | ( | const std::weak_ptr< GPUTracerVK > & | tracer | ) |
| explicit

Definition at line 219 of file gpu_tracer_vk.cc.

220 : tracer_(tracer) {}

## ◆ GPUProbe() [2/2]

impeller::GPUProbe::GPUProbe | ( | GPUProbe && |  | ) |
| delete

## ◆ ~GPUProbe()

impeller::GPUProbe::~GPUProbe | ( |  | ) |

Definition at line 222 of file gpu_tracer_vk.cc.

222 {
223 if (!index_.has_value()) {
224 return;
225 }
226 auto tracer = tracer_.lock();
227 if (!tracer) {
228 return;
229 }
230 tracer->OnFenceComplete(index_.value());
231 }

## Member Function Documentation

## ◆ operator=()

GPUProbe& impeller::GPUProbe::operator= | ( | GPUProbe && |  | ) |
| delete

## ◆ RecordCmdBufferEnd()

void impeller::GPUProbe::RecordCmdBufferEnd | ( | const vk::CommandBuffer & | buffer | ) |

Record a timestamp query into the provided cmd buffer to record end time.

Definition at line 241 of file gpu_tracer_vk.cc.

241 {
242 auto tracer = tracer_.lock();
243 if (!tracer) {
244 return;
245 }
246 tracer->RecordCmdBufferEnd(buffer, *this);
247 }

## ◆ RecordCmdBufferStart()

void impeller::GPUProbe::RecordCmdBufferStart | ( | const vk::CommandBuffer & | buffer | ) |

Record a timestamp query into the provided cmd buffer to record start time.

Definition at line 233 of file gpu_tracer_vk.cc.

233 {
234 auto tracer = tracer_.lock();
235 if (!tracer) {
236 return;
237 }
238 tracer->RecordCmdBufferStart(buffer, *this);
239 }

## Friends And Related Function Documentation

## ◆ GPUTracerVK

friend class GPUTracerVK
| friend

Definition at line 119 of file gpu_tracer_vk.h.

The documentation for this class was generated from the following files:

- impeller/renderer/backend/vulkan/gpu_tracer_vk.h
- impeller/renderer/backend/vulkan/gpu_tracer_vk.cc