summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-23 06:30:04 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-23 06:30:04 -0500
commit2bd0c5be0257682933b01c657cddd98b1066e2c9 (patch)
treefb040f39b39d1563dfc487bd8dcefa4ced95cd49
parentcca8ec1c9c491e23b18b1b24bbc910bba2ad8cf8 (diff)
downloadpython-coveragepy-git-2bd0c5be0257682933b01c657cddd98b1066e2c9.tar.gz
Comment things
-rw-r--r--test/osinfo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/osinfo.py b/test/osinfo.py
index 5dc3899e..7a82610a 100644
--- a/test/osinfo.py
+++ b/test/osinfo.py
@@ -35,6 +35,7 @@ if sys.hexversion >= 0x02050000 and sys.platform == 'win32':
return mem_struct.PrivateUsage
elif sys.platform == 'linux2':
+ # Linux implementation
import os
_scale = {'kb': 1024, 'mb': 1024*1024}
@@ -57,11 +58,12 @@ elif sys.platform == 'linux2':
return int(float(v[1]) * _scale[v[2].lower()])
def process_ram():
- """How much RAM is this process using? (Linux implementation"""
+ """How much RAM is this process using? (Linux implementation)"""
return _VmB('VmRSS')
else:
+ # Don't have an implementation, at least satisfy the interface.
def process_ram():
- """How much RAM is this process using? (no implementation)"""
+ """How much RAM is this process using? (placebo implementation)"""
return 0