git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
348aba8
)
removed garbage collection before taking memory measurement, which was causing cpu...
author
Forrest Voight
<forrest@forre.st>
Thu, 10 Jan 2013 16:04:50 +0000 (11:04 -0500)
committer
Forrest Voight
<forrest@forre.st>
Thu, 10 Jan 2013 16:04:50 +0000 (11:04 -0500)
p2pool/util/memory.py
patch
|
blob
|
history
diff --git
a/p2pool/util/memory.py
b/p2pool/util/memory.py
index
b7be340
..
9b50ad1
100644
(file)
--- a/
p2pool/util/memory.py
+++ b/
p2pool/util/memory.py
@@
-5,7
+5,6
@@
_scale = {'kB': 1024, 'mB': 1024*1024,
'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:')