Package schrodinger :: Package utils :: Module system
[hide private]
[frames] | no frames]

Module system

System-related utilities.

Functions [hide private]
 
get_memory_usage(size='rss')
Return the amount of memory the current process is using
Variables [hide private]
  __package__ = 'schrodinger.utils'
Function Details [hide private]

get_memory_usage(size='rss')

 

Return the amount of memory the current process is using

Parameters:
  • size, is, a, string, indicating, the, type, of, memory - rss: Resident set size vsz: Virtual memory size in KB

    The default without any arguments is rss.

    WARNING: This only works on Linux. Need to write comparable Windows code. On Windows this will throw an exception.