KCGroups
kapplicationscope.h
30 * @brief the systemd unit id. Read-only. Will be set asynchronously if not specified in constructor.
79 * @brief cpu quota for cpu controller, in microseconds per second (1000000 means 100%). Can be unset
86 * @brief duration in micoseconds over which the CPU time quota is measured. (default when unset is 100ms)
90 Q_PROPERTY(OptionalQULongLong cpuQuotaPeriod READ cpuQuotaPeriod WRITE setCpuQuotaPeriod NOTIFY cpuQuotaPeriodChanged)
97 Q_PROPERTY(OptionalQULongLong cpuWeight READ cpuWeight WRITE setCpuWeight NOTIFY cpuWeightChanged)
107 * @brief best-effort memory usage protection (in bytes) of all executed processes within the application.
111 Q_PROPERTY(OptionalQULongLong memoryLow READ memoryLow WRITE setMemoryLow NOTIFY memoryLowChanged)
114 * @brief throttling limit on memory usage (in bytes) of all executed processes within the application.
118 Q_PROPERTY(OptionalQULongLong memoryHigh READ memoryHigh WRITE setMemoryHigh NOTIFY memoryHighChanged)
125 Q_PROPERTY(OptionalQULongLong memoryMin READ memoryMin WRITE setMemoryMin NOTIFY memoryMinChanged)
128 * @brief absolute limit on memory usage (in bytes) of all executed processes within the application.
132 Q_PROPERTY(OptionalQULongLong memoryMax READ memoryMax WRITE setMemoryMax NOTIFY memoryMaxChanged)
135 * @brief absolute limit on swap usage (in bytes) of all executed processes within the application.
139 Q_PROPERTY(OptionalQULongLong memorySwapMax READ memorySwapMax WRITE setMemorySwapMax NOTIFY memorySwapMaxChanged)
A desktop application in a systemd transient scope.
Definition kapplicationscope.h:20
OptionalQULongLong memoryMin
memory usage protection (in bytes) of all executed processes within the application.
Definition kapplicationscope.h:125
OptionalQULongLong memoryHigh
throttling limit on memory usage (in bytes) of all executed processes within the application.
Definition kapplicationscope.h:118
void ioWeightChanged(const OptionalQULongLong &weight)
emitted when the io weight has changed
KApplicationScope(const QString &path, QObject *parent=nullptr)
Use when only path is known.
Definition kapplicationscope.cpp:84
OptionalQULongLong cpuQuotaPeriod
duration in micoseconds over which the CPU time quota is measured.
Definition kapplicationscope.h:90
void errorOccurred(KApplicationScope::ErrorCode lastError)
emitted when there is an error setting or getting a value
void memoryMaxChanged(const OptionalQULongLong &memoryMax)
emitted when memoryMax has changed
QString cgroup
file path of the control group in /sys/fs/cgroup @accessors cgroup() @notifySignal cgroupChanged()
Definition kapplicationscope.h:41
void cpuQuotaPeriodChanged(const OptionalQULongLong &period)
emitted when the cpu quota period has changed
void setMemorySwapMax(const OptionalQULongLong &memorySwapMax)
set memorySwapMax
Definition kapplicationscope.cpp:214
void idChanged(const QString &id)
emitted after loading when id is not known at constructor time
OptionalQULongLong cpuQuota
cpu quota for cpu controller, in microseconds per second (1000000 means 100%).
Definition kapplicationscope.h:83
void setCpuQuotaPeriod(const OptionalQULongLong &period)
set cpuQuotaPeriod
Definition kapplicationscope.cpp:179
void cpuWeightChanged(const OptionalQULongLong &weight)
emitted when the cpu weight has changed
void cgroupChanged(const QString &cgroup)
emitted when cgroup has been loaded asynchronously
void setMemoryHigh(const OptionalQULongLong &memoryHigh)
set memoryHigh
Definition kapplicationscope.cpp:199
void instanceChanged(const QString &instance)
emitted when the instance random identifier has been loaded asynchronously
void propertyChanged(const QString &propertyName)
emitted when any cgroup resource property has changed
OptionalQULongLong memorySwapMax
absolute limit on swap usage (in bytes) of all executed processes within the application.
Definition kapplicationscope.h:139
ErrorCode lastError
code of the last error that occurred (NoError if none) @accessors lastError() @notifySignal errorOccu...
Definition kapplicationscope.h:76
OptionalQULongLong memoryMax
absolute limit on memory usage (in bytes) of all executed processes within the application.
Definition kapplicationscope.h:132
void desktopNameChanged(const QString &desktopName)
emitted when .desktop name has been loaded asynchronously
void setMemoryMax(const OptionalQULongLong &memoryMax)
set memoryMax
Definition kapplicationscope.cpp:209
void setMemoryMin(const OptionalQULongLong &memoryMin)
set memoryMin
Definition kapplicationscope.cpp:204
OptionalQULongLong memoryLow
best-effort memory usage protection (in bytes) of all executed processes within the application.
Definition kapplicationscope.h:111
void cpuQuotaChanged(const OptionalQULongLong "a)
emitted when the cpu quota has changed
void memoryHighChanged(const OptionalQULongLong &memoryHigh)
emitted when memoryHigh has changed
void memorySwapMaxChanged(const OptionalQULongLong &memorySwapMax)
emitted when memorySwapMax has changed
void memoryLowChanged(const OptionalQULongLong &memoryLow)
emitted when memoryLow has changed
void desktopFilePathChanged(const QString &desktopFilePath)
emitted when .desktop file path has been loaded asynchronously
void setCpuWeight(const OptionalQULongLong &weight)
set cpuWeight
Definition kapplicationscope.cpp:184
void memoryMinChanged(const OptionalQULongLong &memoryMin)
emitted when memoryMin has changed
void setMemoryLow(const OptionalQULongLong &memoryLow)
set memoryLow
Definition kapplicationscope.cpp:194
void descriptionChanged(const QString &description)
emitted when description has been loaded asynchronously
void stop(Ekos::AlignState mode)
QObject(QObject *parent)
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:50:50 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:50:50 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.