소스 검색

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

Ian Goldberg 4 년 전
부모
커밋
1981672c4f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)