kysdk.Resource(3)

πŸ“¦ version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

πŸ’– 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