def _VmB(VmKey):
    global _proc_status, _scale
     # get pseudo file  /proc/<pid>/status
    try:
        t = open(_proc_status)
        v = t.read()
        t.close()
    except:
        return 0.0  # non-Linux?
     # get VmKey line e.g. 'VmRSS:  9999  kB\n ...'
    i = v.index(VmKey)
    v = v[i:].split(None, 3)  # whitespace
    if len(v) < 3:
        return 0.0  # invalid format?
     # convert Vm value to bytes
    return float(v[1]) * _scale[v[2]]
Tests present on a trail that does not exist.
dataset/ETHPy150Open hycis/Mozi/mozi/utils/check_memory.py/_VmB--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_cloudtrail_test.py/BotoCloudTrailTestCase.test_present_when_trail_does_not_exist