Permalink
Browse files

removed garbage collection before taking memory measurement, which wa…

…s causing cpu spikes
  • Loading branch information...
1 parent 348aba8 commit 8c9f2ca32ddaa8c130abeb1640a410af21c64870 @forrestv forrestv committed Jan 10, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 p2pool/util/memory.py
View
@@ -5,7 +5,6 @@
'KB': 1024, 'MB': 1024*1024}
def resident():
- gc.collect()
with open('/proc/%d/status' % os.getpid()) as f:
v = f.read()
i = v.index('VmRSS:')

0 comments on commit 8c9f2ca

Please sign in to comment.