獲取CPU和內存的利用率Python模塊 , psutil 3.3.0 發布
psutil 是一個 Python模塊用來獲取正在運行的進程信息和系統的CPU和內存的利用率。類似 Linux 的 ps 、top 和 Windows 的任務管理器等程序。
psutil 3.3.0 發布,主要更新如下:
-
Process.memory_maps() is not implemented. The kernel provides the necessary pieces but I didn't do this yet (hopefully later).
-
Process.num_ctx_switches()'s involuntary field is always 0. kinfo_proc provides this info but it is always set to 0.
-
Process.cpu_affinity() (get and set) is not supported.
-
Process.exe() is determined by inspecting the command line so it may not always be available (return None).
-
psutil.swap_memory() sin and sout (swap in and swap out) values are not available and hence are always set to 0.
-
psutil.cpu_count(logical=False) always return None.
詳情請看:發行說明。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!