コード例 #1
0
ファイル: _psosx.py プロジェクト: basketwill/psutil
def phymem_usage():
    """Physical system memory as a (total, used, free) tuple."""
    total = _psutil_osx.get_total_phymem()
    free = _psutil_osx.get_avail_phymem()
    used = total - free
    percent = usage_percent(used, total, _round=1)
    return ntuple_sysmeminfo(total, used, free, percent)
コード例 #2
0
ファイル: _psosx.py プロジェクト: tamentis/psutil
def phymem_usage():
    """Physical system memory as a (total, used, free) tuple."""
    total = _psutil_osx.get_total_phymem()
    free =  _psutil_osx.get_avail_phymem()
    used = total - free
    percent = usage_percent(used, total, _round=1)
    return ntuple_sysmeminfo(total, used, free, percent)
コード例 #3
0
ファイル: _psosx.py プロジェクト: bupteinstein/psutil
def used_phymem():
    "Return the amount of physical memory currently in use on the system, in bytes."
    return TOTAL_PHYMEM - _psutil_osx.get_avail_phymem()
コード例 #4
0
ファイル: _psosx.py プロジェクト: bupteinstein/psutil
def avail_phymem():
    "Return the amount of physical memory available on the system, in bytes."
    return _psutil_osx.get_avail_phymem()
コード例 #5
0
ファイル: _psosx.py プロジェクト: willwilliams/nupic
def used_phymem():
    "Return the amount of physical memory currently in use on the system, in bytes."
    return TOTAL_PHYMEM - _psutil_osx.get_avail_phymem()
コード例 #6
0
ファイル: _psosx.py プロジェクト: willwilliams/nupic
def avail_phymem():
    "Return the amount of physical memory available on the system, in bytes."
    return _psutil_osx.get_avail_phymem()