Approximate the GPU frame time by computing a difference between the smallest GPUStartTime and largest GPUEndTime for all command buffers submitted in a frame workload. More...
#include <gpu_tracer_mtl.h>
Public Member Functions | |
| GPUTracerMTL ()=default | |
| ~GPUTracerMTL ()=default | |
| void | MarkFrameEnd () |
| Record that the current frame has ended. Any additional cmd buffers will be attributed to the "next" frame. | |
| void | RecordCmdBuffer (id< MTLCommandBuffer > buffer) |
| Record the current cmd buffer GPU execution timestamps into an aggregate frame workload metric. | |
Approximate the GPU frame time by computing a difference between the smallest GPUStartTime and largest GPUEndTime for all command buffers submitted in a frame workload.
Definition at line 23 of file gpu_tracer_mtl.h.
|
default |
|
default |
| void impeller::GPUTracerMTL::MarkFrameEnd | ( | ) |
Record that the current frame has ended. Any additional cmd buffers will be attributed to the "next" frame.
Definition at line 16 of file gpu_tracer_mtl.mm.
| void impeller::GPUTracerMTL::RecordCmdBuffer | ( | id< MTLCommandBuffer > | buffer | ) |
Record the current cmd buffer GPU execution timestamps into an aggregate frame workload metric.
Definition at line 23 of file gpu_tracer_mtl.mm.
References FML_TRACE_COUNTER, and self.