|
coastline 0.0.4
|
Frame timings and system statistics, with memory and GPU sampling on a separate thread. More...
#include <performance.h>
Public Member Functions | |
| PerformanceStats (std::string gpuName, bool allowNvml) | |
| Sample the active adapter only when its identity permits NVML. | |
| ~PerformanceStats () | |
| Stop sampling and release provider resources before destruction completes. | |
| PerformanceStats (const PerformanceStats &)=delete | |
| Prevent copying the collector's GPU sampling thread. | |
| PerformanceStats & | operator= (const PerformanceStats &)=delete |
| Prevent assignment of the collector's GPU sampling thread. | |
| void | Frame (std::uint64_t workNanoseconds) |
| Record frame work and elapsed frame intervals, and sample once a second has passed. | |
| std::vector< std::string > | Lines (std::uint64_t gameGpuBytes) const |
Frame timings and system statistics, with memory and GPU sampling on a separate thread.
| coastline::PerformanceStats::PerformanceStats | ( | std::string | gpuName, |
| bool | allowNvml ) |
Sample the active adapter only when its identity permits NVML.
| gpuName | The active adapter identifier for an exact NVML device match. |
| allowNvml | Whether the renderer permits NVML for the active adapter. |
| coastline::PerformanceStats::~PerformanceStats | ( | ) |
Stop sampling and release provider resources before destruction completes.
|
delete |
Prevent copying the collector's GPU sampling thread.
|
delete |
Prevent assignment of the collector's GPU sampling thread.
| void coastline::PerformanceStats::Frame | ( | std::uint64_t | workNanoseconds | ) |
Record frame work and elapsed frame intervals, and sample once a second has passed.
| workNanoseconds | CPU-side frame time excluding presentation waits and software pacing. |
| std::vector< std::string > coastline::PerformanceStats::Lines | ( | std::uint64_t | gameGpuBytes | ) | const |
| gameGpuBytes | The bytes of the textures and buffers the game has created. |