fluiddyn/util/util.py: deprecated function name?
Created originally on Bitbucket by avmo (Ashwin Vishnu)
#!python
@@ -129,7 +129,7 @@
def get_memory_usage():
"""Return the memory usage in Mo."""
process = psutil.Process(os.getpid())
- mem = process.get_memory_info()[0] / float(2 ** 20)
+ mem = process.memory_info()[0] / float(2 ** 20)
return mem