1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 22:54:16 +01:00

[dxvk] Add GPU idle time to stat counters

This commit is contained in:
Philip Rebohle 2019-07-18 23:23:12 +02:00
parent 3d86ecd94d
commit 5bb20cceb6
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,7 @@ namespace dxvk {
result.setCtr(DxvkStatCounter::PipeCountGraphics, pipe.numGraphicsPipelines);
result.setCtr(DxvkStatCounter::PipeCountCompute, pipe.numComputePipelines);
result.setCtr(DxvkStatCounter::PipeCompilerBusy, m_pipelineManager->isCompilingShaders());
result.setCtr(DxvkStatCounter::GpuIdleTicks, m_submissionQueue.gpuIdleTicks());
std::lock_guard<sync::Spinlock> lock(m_statLock);
result.merge(m_statCounters);

View File

@ -22,6 +22,7 @@ namespace dxvk {
PipeCompilerBusy, ///< Boolean indicating compiler activity
QueueSubmitCount, ///< Number of command buffer submissions
QueuePresentCount, ///< Number of present calls / frames
GpuIdleTicks, ///< GPU idle time in microseconds
NumCounters, ///< Number of counters available
};