summaryrefslogtreecommitdiffstats
path: root/linux/GPUMeter.h
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/GPUMeter.h
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/GPUMeter.h')
-rw-r--r--linux/GPUMeter.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux/GPUMeter.h b/linux/GPUMeter.h
new file mode 100644
index 00000000..a770ec77
--- /dev/null
+++ b/linux/GPUMeter.h
@@ -0,0 +1,19 @@
+#ifndef HEADER_GPUMeter
+#define HEADER_GPUMeter
+/*
+htop - GPUMeter.h
+(C) 2023 htop dev team
+Released under the GNU GPLv2+, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include <stdbool.h>
+
+#include "Meter.h"
+
+
+extern const MeterClass GPUMeter_class;
+
+bool GPUMeter_active(void);
+
+#endif /* HEADER_GPUMeter */

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