psutil.virtual_memory()
时间: 2024-05-22 22:14:53 浏览: 67
psutil.virtual_memory() is a Python function that returns a named tuple representing the system's virtual memory statistics. The tuple contains the following fields:
- total: the total amount of physical memory, in bytes
- available: the amount of physical memory currently available, in bytes
- percent: the percentage of memory that is currently in use
- used: the amount of memory currently being used, in bytes
- free: the amount of memory currently available for use, in bytes
- active: the amount of memory currently being used actively, in bytes
- inactive: the amount of memory that is currently inactive, in bytes
- buffers: the amount of memory currently being used for buffers, in bytes
- cached: the amount of memory currently being used for caching, in bytes
This function is part of the psutil module, which is used to retrieve information about system processes and system utilization.
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)