memory_usage

  • full name: tenpy.tools.process.memory_usage

  • parent module: tenpy.tools.process

  • type: function

tenpy.tools.process.memory_usage()[source]

Return memory usage of the running python process.

You can pip install psutil if you get only -1..

Returns:

mem – Currently used memory in megabytes. -1. if no way to read out.

Return type:

float