File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class PROCESS_MEMORY_COUNTERS_EX(ctypes.Structure):
35
35
return mem_struct .PrivateUsage
36
36
37
37
elif sys .platform == 'linux2' :
38
+ # Linux implementation
38
39
import os
39
40
40
41
_scale = {'kb' : 1024 , 'mb' : 1024 * 1024 }
@@ -57,11 +58,12 @@ def _VmB(key):
57
58
return int (float (v [1 ]) * _scale [v [2 ].lower ()])
58
59
59
60
def process_ram ():
60
- """How much RAM is this process using? (Linux implementation"""
61
+ """How much RAM is this process using? (Linux implementation) """
61
62
return _VmB ('VmRSS' )
62
63
63
64
64
65
else :
66
+ # Don't have an implementation, at least satisfy the interface.
65
67
def process_ram ():
66
- """How much RAM is this process using? (no implementation)"""
68
+ """How much RAM is this process using? (placebo implementation)"""
67
69
return 0
You can’t perform that action at this time.
0 commit comments