Good day to all, tell me how to get information about the process memory from psutil so that it corresponds to the task manager? For example, I use this thing:
import psutil for proc in psutil.pids(): try: p = psutil.Process(proc) m = p.memory_info_ex() print (p.name(), m) except: pass Which as a result deduced a name of process and all its information, but I there did not find representation necessary. Maybe you need some more arithmetic?
There, all the numbers in bytes are issued, according to the documentation, from the dispatcher into bytes translated and compared. I tried to reduce everything to kilobytes - it also did not converge.