pyufunc.virtual_memory#

pyufunc.virtual_memory(unit='bytes')#

Return statistics about system memory usage (RAM). All values are expressed in bytes.

Parameters:
  • unit (str) – The unit of the returned values. Defaults to “bytes”.

  • "bytes" (-) – Return values in bytes.

  • "KB" (-) – Return values in kilobytes.

  • "MB" (-) – Return values in megabytes.

  • "GB" (-) – Return values in gigabytes.

  • recognized (If the unit is not)

  • "bytes". (it will default to)

Note

Example

>>> virtual_memory()
Returns:

A named tuple representing the system memory usage statistics.

Return type:

psutil.virtual_memory