VirtualMemoryImpl

class VirtualMemoryImpl(virtualMemory: VirtualMemory) : VirtualMemory

Implementation of the VirtualMemory interface. This class provides details about the virtual memory statistics of the system, including swap memory usage, virtual memory limits, and the number of swap pages.

Parameters

virtualMemory

The source object containing virtual memory information from the hardware.

See also

Constructors

Link copied to clipboard
constructor(virtualMemory: VirtualMemory)

Properties

Link copied to clipboard
open override val swapPagesIn: Long

swapPagesIn The number of pages that have been swapped in from disk into memory

Link copied to clipboard
open override val swapPagesOut: Long

swapPagesOut The number of pages that have been swapped out from memory to disk

Link copied to clipboard
open override val swapTotal: Long

swapTotal The total amount of swap space available in the system (in bytes)

Link copied to clipboard
open override val swapUsed: Long

swapUsed The amount of swap space currently being used (in bytes)

Link copied to clipboard
open override val virtualInUse: Long

virtualInUse The amount of virtual memory currently in use (in bytes)

Link copied to clipboard
open override val virtualMax: Long

virtualMax The maximum amount of virtual memory that the system can use (in bytes)