memory_usage

dolfin.common.memory.memory_usage(as_string=True)

Return memory usage of current process. Note that this function only works on Linux systems. If the flag as_string is true, memory usage is returned as a string. Otherwise, a tuple of integers is returned with current memory usage and maximum memory usage in kB.