Reports detailed benchmark statistics for GPU computation and rendering. More...
Classes | |
class | Times |
Timing data for different GPU operations in milliseconds. More... | |
Public Member Functions | |
float | computeTime () const |
Returns total compute time in milliseconds. | |
float | memoryTime () const |
Returns total memory transfer time in milliseconds. | |
float | totalTime (bool includeDraw=false) const |
Returns total time including compute and optionally draw time in milliseconds. | |
std::string | toString () const |
Returns a string representation of the benchmark report. | |
void | print () const |
Prints the benchmark report to the console. | |
void | store (std::string path) const |
Saves the benchmark report to the specified file path. | |
Public Attributes | |
std::size_t | inFlightFrames {1} |
Number of in-flight frames during benchmarking. | |
class Gpu::Gpu::BenchmarkReport::Times | times |
float | usedMemory {0} |
Amount of GPU memory used in bytes. | |
Reports detailed benchmark statistics for GPU computation and rendering.
|
export |
Returns total compute time in milliseconds.
|
export |
Returns total memory transfer time in milliseconds.
|
export |
Prints the benchmark report to the console.
|
export |
Saves the benchmark report to the specified file path.
path | File path to save the report. |
|
export |
Returns a string representation of the benchmark report.
|
export |
Returns total time including compute and optionally draw time in milliseconds.
includeDraw | Whether to include draw time in total. |
|
export |
Number of in-flight frames during benchmarking.
class Gpu::Gpu::BenchmarkReport::Times Gpu::Gpu::BenchmarkReport::times |
|
export |
Amount of GPU memory used in bytes.