Commit 793b0fe2 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Memory usage is now recorded as integers.

parent cb934d71
......@@ -2094,7 +2094,7 @@ class GMS_object(object):
def record_mem_usage(self):
"""Record memory usage of current process ID for the current processing level (megabytes)."""
# get memory usage of current process ID
mem_usage = round(psutil.Process(os.getpid()).memory_info().rss / 1024**2, 1)
mem_usage = int(psutil.Process(os.getpid()).memory_info().rss / 1024**2)
# update the value (only if there is not a larger value already because we want to record maximum memory needed)
if self.proc_level not in self.mem_usage or self.mem_usage[self.proc_level] > mem_usage:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment