Browse Source

Log the max memory usage every epoch, not just at the end

Ian Goldberg 4 years ago
parent
commit
1981672c4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      simulator.py

+ 2 - 2
simulator.py

@@ -317,5 +317,5 @@ if __name__ == '__main__':
         statslogger.info("Starting epoch %s simulation", e+3)
         simulator.one_epoch()
 
-    maxmemmib = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024
-    statslogger.info("%d MiB used", maxmemmib)
+        maxmemmib = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024
+        statslogger.info("%d MiB used", maxmemmib)