Crate system_memory

source ·
Expand description

A small crate that resolves the total system memory of the host. This is useful for many projects that may behave differently depending on how much memory the host system has and how much is available.

Modules§

  • linuxLinux
    Linux specific implementation.

Functions§

  • availableWindows or Linux or macOS or iOS
    Get the number of bytes of available physical memory on this host.
  • totalWindows or Linux or macOS or iOS
    Get the total number of bytes of physical memory on this host.
  • usedWindows or Linux or macOS or iOS
    Get the number of bytes of physical memory currently in use.