GlobalMemoryImpl

class GlobalMemoryImpl(val globalMemory: GlobalMemory) : GlobalMemory

Implementation of the GlobalMemory interface. This class provides detailed information about the system's global memory, including the total memory, available memory, page size, virtual memory, and physical memory modules.

Author

N7ghtm4r3

Parameters

globalMemory

The source of the global memory information, provided by the oshi.hardware.GlobalMemory class.

See also

Constructors

Link copied to clipboard
constructor(globalMemory: GlobalMemory)

Properties

Link copied to clipboard
open override val available: Long

available The amount of available memory in the system (in bytes)

Link copied to clipboard
private val globalMemory: GlobalMemory
Link copied to clipboard
open override val pageSize: Long

pageSize The system's memory page size (in bytes)

Link copied to clipboard
open override val physicalMemory: List<PhysicalMemory>

physicalMemory A list of physical memory modules installed in the system, including details about each individual module

Link copied to clipboard
open override val total: Long

total The total amount of memory in the system (in bytes)

Link copied to clipboard
open override val virtualMemory: VirtualMemory

virtualMemory The virtual memory information of the system, which includes swap space and memory limits

Functions

Link copied to clipboard
private fun loadPhysicalMemories(sourceList: List<PhysicalMemory>): List<PhysicalMemory>

Loads the physical memory modules from the source list