| 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 222 of file gpu_tracer_vk.cc.

223 : tracer_(tracer) {}

## ◆ GPUProbe() [2/2]

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

## ◆ ~GPUProbe()

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

Definition at line 225 of file gpu_tracer_vk.cc.

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

## 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 244 of file gpu_tracer_vk.cc.

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

## ◆ 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 236 of file gpu_tracer_vk.cc.

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

## 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