This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def _procMemoryGrep(filename, vmkeys): | |
size_scale = {'kb': 1024.0, 'mb':1048576.0, 'gb':1073741824.0} | |
values = {} | |
fd = open(filename) | |
try: | |
for line in fd: | |
for vmkey in vmkeys: |