示例#1
0
 def memory_info_ex(self):
     rss, vms, pfaults, pageins = cext.proc_memory_info(self.pid)
     return pextmem(rss, vms, pfaults * PAGESIZE, pageins * PAGESIZE)
示例#2
0
 def memory_info(self):
     rss, vms = cext.proc_memory_info(self.pid)[:2]
     return _common.pmem(rss, vms)
示例#3
0
文件: _psosx.py 项目: dangpu/momoko
 def memory_info_ex(self):
     rss, vms, pfaults, pageins = cext.proc_memory_info(self.pid)
     return pextmem(rss, vms, pfaults * PAGESIZE, pageins * PAGESIZE)
示例#4
0
文件: _psosx.py 项目: dangpu/momoko
 def memory_info(self):
     rss, vms = cext.proc_memory_info(self.pid)[:2]
     return _common.pmem(rss, vms)
示例#5
0
文件: _psosx.py 项目: ztop/psutil
 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)
示例#6
0
文件: _psosx.py 项目: ztop/psutil
 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)