Skip to content

Commit

Permalink
removed garbage collection before taking memory measurement, which wa…
Browse files Browse the repository at this point in the history
…s causing cpu spikes
  • Loading branch information
forrestv committed Jan 10, 2013
1 parent 348aba8 commit 8c9f2ca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion p2pool/util/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:')
Expand Down

0 comments on commit 8c9f2ca

Please sign in to comment.