kysdk.Resource(3)
π kysdk.Resource β bestie, it's the system resource class π
okay so real quick, this is the kysdk.Resource page from the Library Functions Manual, and honestly? she's giving main character energy for your system stats. πΈ
π NAME π
kysdk.Resource β the System resource usage information class π she's the one you call when you need to know: total physical memory size, physical memory usage rate, physical memory usage size, actually available physical memory size, actually free physical memory size, total virtual memory allocated by all applications, total Swap partition size, Swap partition usage rate, Swap partition usage, Swap partition free size, CPU instantaneous usage rate, and operating system uptime. literally the whole vibe check for your machine β¨
π¦ SYNOPSIS π¦
she inherits kysdk.Base π
Public Member Functions
def __init__ (self)
def getMemTotalKiB (self)
Get the total physical memory size of the system
def getMemUsagePercent (self)
Get the physical memory usage rate
def getMemUsageKiB (self)
Get the physical memory usage size, note that Buffer/Cache is
counted as used memory
def getMemAvailableKiB (self)
Get the actually available physical memory size, this value is
approximately equal to Free + Buffer + Cache
def getMemFreeKiB (self)
Get the actually free physical memory size, note that Buffer/Cache
is counted as used memory
def getMemVirtAllocKiB (self)
Get the total virtual memory allocated by all applications
def getMemSwapTotalKiB (self)
Get the total Swap partition size of the system
def getMemSwapUsagePercent (self)
Get the Swap partition usage rate
def getMemSwapUsageKiB (self)
Get the Swap partition usage
def getMemSwapFreeKiB (self)
Get the Swap partition free size
def getCpuCurrentUsage (self)
Get the CPU instantaneous usage rate
def getUpTime (self)
Get the operating system uptime
Additional Inherited Members
(yes bestie, there's extra stuff she gets from her parents, it's just not relisted here π«Ά)
β¨ Detailed Description β¨
System resource usage information class used to obtain total physical memory size, physical memory usage rate, physical memory usage size, actually available physical memory size, actually free physical memory size, total virtual memory allocated by all applications, total Swap partition size, Swap partition usage rate, Swap partition usage, Swap partition free size, CPU instantaneous usage rate, and operating system uptime. π©·
like. she knows everything about your RAM, your swap, your CPU and how long you've been up. no cap. π
π Member Function Documentation π
okay this part is alphabetical (not me organising them like that, that's just how it is) so let's gooo πββοΈ
def kysdk.Resource.getCpuCurrentUsage ( self)
Get the CPU instantaneous usage rate π₯
Returns
- CPU instantaneous usage rate, this value < 1.00
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemAvailableKiB ( self)
Get the actually available physical memory size, this value is approximately equal to Free + Buffer + Cache π
Returns
- Available physical memory size, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemFreeKiB ( self)
Get the actually free physical memory size, note that Buffer/Cache is counted as used memory π«£
Returns
- Free physical memory size, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemSwapFreeKiB ( self)
Get the Swap partition free size π
Returns
- Swap partition free size, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemSwapTotalKiB ( self)
Get the total Swap partition size of the system π
Returns
- Swap partition size, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemSwapUsageKiB ( self)
Get the Swap partition usage π
Returns
- Swap partition usage, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemSwapUsagePercent ( self)
Get the Swap partition usage rate π
Returns
- Swap partition usage rate
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemTotalKiB ( self)
Get the total physical memory size of the system π
Returns
- Physical memory size, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemUsageKiB ( self)
Get the physical memory usage size, note that Buffer/Cache is counted as used memory π
Returns
- Physical memory usage size, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemUsagePercent ( self)
Get the physical memory usage rate π
Returns
- Physical memory usage rate
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getMemVirtAllocKiB ( self)
Get the total virtual memory allocated by all applications π§
Returns
- Total virtual memory allocated, in KiB
References kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Resource.getUpTime ( self)
Get the operating system uptime β°
Returns
- System uptime
References kysdk.SessionBase.interface, and kysdk.Base.interface.
π Author π
Generated automatically by Doxygen for kysdk.py from the source code. π€ (not a human, just a very diligent robot, and honestly? she ate.)
and that's the whole page bestie!! π
sign-off time: this cutie came from My Project, dated Thu Sep 21 2023 β so yeah, she's been iconic since then πβ¨π¦ no cap, periodt π
π¦ where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 Β· LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 Β· LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms