parameters: ()
return_statement: return svmem(total, avail, percent, used, free)
docstring: System virtual memory as a namedtuple.
docstring_summary: System virtual memory as a namedtuple.
docstring_tokens: System virtual memory as a namedtuple .
function: def virtual_memory():
      """System virtual memory as a namedtuple."""
      mem = cext.virtual_mem()
      totphys, availphys, totpagef, availpagef, totvirt, freevirt = mem
      #
      total = totphys
      avail = availphys
      free = availphys
      used = total - avail
      percent = usage_percent((total - avail), total, round_=1)
      return svmem(total, avail, percent, used, free)
function_tokens: def virtual_memory ( ) : mem = cext . virtual_mem ( ) totphys , availphys , totpagef , availpagef , totvirt , freevirt = mem # total = totphys avail = availphys free = availphys used = total - avail percent = usage_percent ( ( total - avail ) , total , round_ = 1 ) return svmem ( total , avail , percent , used , free )