def memory_info_ex(self): rss, vms, pfaults, pageins = cext.proc_memory_info(self.pid) return pextmem(rss, vms, pfaults * PAGESIZE, pageins * PAGESIZE)
def memory_info(self): rss, vms = cext.proc_memory_info(self.pid)[:2] return _common.pmem(rss, vms)
def memory_info_ex(self): """Return a tuple with the process' RSS and VMS size.""" rss, vms, pfaults, pageins = cext.proc_memory_info(self.pid) return pextmem(rss, vms, pfaults * PAGESIZE, pageins * PAGESIZE)
def memory_info(self): """Return a tuple with the process' RSS and VMS size.""" rss, vms = cext.proc_memory_info(self.pid)[:2] return _common.pmem(rss, vms)