]> git.sesse.net Git - nageru/commitdiff
Fix the names for the GPU memory metrics.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Apr 2018 14:48:48 +0000 (16:48 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Apr 2018 14:48:48 +0000 (16:48 +0200)
basic_stats.cpp

index 548f04bee0424f67a612ec6615ff7a0818bed8d9..937e3021c5cdf1188a23c4b086d90e894bb75b01 100644 (file)
@@ -119,11 +119,11 @@ GPUMemoryStats::GPUMemoryStats(bool verbose)
        // that gets the amount of _available_ memory).
        supported = epoxy_has_gl_extension("GL_NVX_gpu_memory_info");
        if (supported) {
-               global_metrics.add("metric_memory_gpu_total_bytes", &metric_memory_gpu_total_bytes, Metrics::TYPE_GAUGE);
-               global_metrics.add("metric_memory_gpu_dedicated_bytes", &metric_memory_gpu_dedicated_bytes, Metrics::TYPE_GAUGE);
-               global_metrics.add("metric_memory_gpu_used_bytes", &metric_memory_gpu_used_bytes, Metrics::TYPE_GAUGE);
-               global_metrics.add("metric_memory_gpu_evicted_bytes", &metric_memory_gpu_evicted_bytes, Metrics::TYPE_GAUGE);
-               global_metrics.add("metric_memory_gpu_evictions", &metric_memory_gpu_evictions);
+               global_metrics.add("memory_gpu_total_bytes", &metric_memory_gpu_total_bytes, Metrics::TYPE_GAUGE);
+               global_metrics.add("memory_gpu_dedicated_bytes", &metric_memory_gpu_dedicated_bytes, Metrics::TYPE_GAUGE);
+               global_metrics.add("memory_gpu_used_bytes", &metric_memory_gpu_used_bytes, Metrics::TYPE_GAUGE);
+               global_metrics.add("memory_gpu_evicted_bytes", &metric_memory_gpu_evicted_bytes, Metrics::TYPE_GAUGE);
+               global_metrics.add("memory_gpu_evictions", &metric_memory_gpu_evictions);
        }
 }