pyufunc.swap_memory#

pyufunc.swap_memory(unit='bytes')#

Return statistics about system swap memory usage. 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

>>> swap_memory()
Returns:

A named tuple representing the system swap memory usage statistics.

Return type:

psutil.swap_memory