summaryrefslogtreecommitdiffstats
path: root/linux/Platform.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-08-29 13:03:31 +0200
committercgzones <cgzones@googlemail.com>2024-03-27 19:49:23 +0100
commitf8c5bdd86478a852c8d3967630dd81fdd70fa030 (patch)
tree868c30988bd44ee8e8be487ad2dd22f23e3cc46b /linux/Platform.c
parentec608672cea2b857a7b43832bfabae2bbe6c04da (diff)
Linux: add GPU meter and process column
Based on the DRM client usage stats[1] add statistics for GPU time spend and percentage utilization. [1]: https://www.kernel.org/doc/html/latest/gpu/drm-usage-stats.html
Diffstat (limited to 'linux/Platform.c')
-rw-r--r--linux/Platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/Platform.c b/linux/Platform.c
index af81a694..7708a573 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -51,6 +51,7 @@ in the source distribution for its full text.
#include "TasksMeter.h"
#include "UptimeMeter.h"
#include "XUtils.h"
+#include "linux/GPUMeter.h"
#include "linux/IOPriority.h"
#include "linux/IOPriorityPanel.h"
#include "linux/LinuxMachine.h"
@@ -252,6 +253,7 @@ const MeterClass* const Platform_meterTypes[] = {
&SystemdMeter_class,
&SystemdUserMeter_class,
&FileDescriptorMeter_class,
+ &GPUMeter_class,
NULL
};

© 2014-2024 Faster IT GmbH | imprint | privacy policy