Closed GoogleCodeExporter closed 9 years ago
get_memory_info() is a per-process function, not a module-wide system function:
>>> import psutil, os
>>> p = psutil.Process(os.getpid())
>>> p.get_memory_info()
meminfo(rss=3796992, vms=618160128)
Memory information for the system is retrieved with module functions like
avail_phymem()/avail_virtmem(), and used_phymem()/used_virtmem()
Original comment by jlo...@gmail.com
on 2 Dec 2010 at 12:33
Original issue reported on code.google.com by
ping...@gmail.com
on 2 Dec 2010 at 12:19