Explorar o código

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

Ian Goldberg %!s(int64=4) %!d(string=hai) anos
pai
achega
1981672c4f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)