Skip to content

Commit a9e5a02

Browse files
committed
Fix for issue #71
1 parent a6d4ea4 commit a9e5a02

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

memory_profiler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def ps_util_tool():
118118
# fix for newer psutil
119119
for p in process.children(recursive=True):
120120
mem += getattr(p, meminfo_attr)()[0] / _TWO_20
121+
except os.OSError:
122+
# https://github.com/fabianp/memory_profiler/issues/71
123+
pass
121124
if timestamps:
122125
return mem, time.time()
123126
else:

0 commit comments

Comments
 (0)