Physical memory
Represents a physical memory entry, providing its capacity, clock speed, and available registry metadata
Original source
The macOS physical memory information are provided by MacOsPhysicalMemory, which inherits PhysicalMemory
KInfo's source
val physicalMemory: List<PhysicalMemory> = hardware.globalMemory.physicalMemory
val sample: PhysicalMemory = physicalMemory.first()
The examples require a non-empty physical memory list; check it before calling first().
On Apple Silicon, a single entry describes the unified memory when the required registry entry is available.
Unavailable textual metadata can be unknown or empty
Properties
bankLabel
The memory bank label. The Apple Silicon unified memory entry uses unknown
capacity
The capacity of the memory entry in bytes
clockSpeed
The memory clock speed in MHz, or 0 when unavailable
manufacturer
The memory manufacturer reported by the native registry
memoryType
The memory type reported by the native registry
partNumber
The memory part number reported by the native registry
serialNumber
The memory serial number reported by the native registry