summaryrefslogtreecommitdiff
path: root/src/monitor-lib/systemmonitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor-lib/systemmonitor.h')
-rw-r--r--src/monitor-lib/systemmonitor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/monitor-lib/systemmonitor.h b/src/monitor-lib/systemmonitor.h
index 2d002ff3..a043a469 100644
--- a/src/monitor-lib/systemmonitor.h
+++ b/src/monitor-lib/systemmonitor.h
@@ -63,8 +63,10 @@ class SystemMonitor : public QAbstractListModel
Q_PROPERTY(quint64 memoryUsed READ memoryUsed NOTIFY memoryReportingChanged)
Q_PROPERTY(int cpuCores READ cpuCores CONSTANT)
Q_PROPERTY(qreal cpuLoad READ cpuLoad NOTIFY cpuLoadReportingChanged)
+ Q_PROPERTY(qreal gpuLoad READ gpuLoad NOTIFY gpuLoadReportingChanged)
Q_PROPERTY(bool memoryReportingEnabled READ isMemoryReportingEnabled WRITE setMemoryReportingEnabled NOTIFY memoryReportingEnabledChanged)
Q_PROPERTY(bool cpuLoadReportingEnabled READ isCpuLoadReportingEnabled WRITE setCpuLoadReportingEnabled NOTIFY cpuLoadReportingEnabledChanged)
+ Q_PROPERTY(bool gpuLoadReportingEnabled READ isGpuLoadReportingEnabled WRITE setGpuLoadReportingEnabled NOTIFY gpuLoadReportingEnabledChanged)
Q_PROPERTY(bool fpsReportingEnabled READ isFpsReportingEnabled WRITE setFpsReportingEnabled NOTIFY fpsReportingEnabledChanged)
Q_PROPERTY(bool idle READ isIdle NOTIFY idleChanged)
@@ -88,6 +90,7 @@ public:
quint64 memoryUsed() const;
int cpuCores() const;
qreal cpuLoad() const;
+ qreal gpuLoad() const;
void setIdleLoadThreshold(qreal loadThreshold);
qreal idleLoadThreshold() const;
@@ -104,6 +107,9 @@ public:
void setCpuLoadReportingEnabled(bool enabled);
bool isCpuLoadReportingEnabled() const;
+ void setGpuLoadReportingEnabled(bool enabled);
+ bool isGpuLoadReportingEnabled() const;
+
Q_INVOKABLE bool addIoLoadReporting(const QString &deviceName);
Q_INVOKABLE void removeIoLoadReporting(const QString &deviceName);
Q_INVOKABLE QStringList ioLoadReportingDevices() const;
@@ -129,11 +135,13 @@ signals:
void memoryReportingChanged(quint64 used);
void cpuLoadReportingChanged(qreal load);
+ void gpuLoadReportingChanged(qreal load);
void ioLoadReportingChanged(const QString &device, qreal load);
void fpsReportingChanged(qreal average, qreal minimum, qreal maximum, qreal jitter);
void memoryReportingEnabledChanged();
void cpuLoadReportingEnabledChanged();
+ void gpuLoadReportingEnabledChanged();
void fpsReportingEnabledChanged();
private: