Flutter Engine
The Flutter Engine
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
 
GPUProbeoperator= (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}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

◆ 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: