def swap_memory ( ) : mem = _psutil_mswindows . get_virtual_mem ( ) total = mem [ 2 ] free = mem [ 3 ] used = total - free percent = usage_percent ( used , total , _round = 1 ) return nt_swapmeminfo ( total , used , free , percent , 0 , 0 )
python windows shared memory api
Swap system memory as a ( total used free sin sout ) tuple .
def swap_memory():
    """Swap system memory as a (total, used, free, sin, sout) tuple."""
    mem = _psutil_mswindows.get_virtual_mem()
    total = mem[2]
    free = mem[3]
    used = total - free
    percent = usage_percent(used, total, _round=1)
    return nt_swapmeminfo(total, used, free, percent, 0, 0)