4 return '/proc/%d/status' % pid
6 _scale = {
'kB': 1024.0,
'mB': 1024.0*1024.0,
7 'KB': 1024.0,
'MB': 1024.0*1024.0}
26 v = v[i:].
split(
None, 3)
30 return float(v[1]) * _scale[v[2]]
34 '''Return memory usage in bytes. 36 return _VmB(pid,
'VmSize:') - since
40 '''Return resident memory usage in bytes. 42 return _VmB(pid,
'VmRSS:') - since
46 '''Return stack size in bytes. 48 return _VmB(pid,
'VmStk:') - since
void split(double tt, double *fr)
def memory(pid, since=0.0)
def stacksize(pid, since=0.0)
procfile open("FD_BRL_v0.txt")
def resident(pid, since=0.0)