Skip to content

Commit 4fe1d57

Browse files
committed
Fix issue #131
1 parent a9e5a02 commit 4fe1d57

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

memory_profiler.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ def ps_util_tool():
112112
mem = getattr(process, meminfo_attr)()[0] / _TWO_20
113113
if include_children:
114114
try:
115-
for p in process.get_children(recursive=True):
116-
mem += getattr(p, meminfo_attr)()[0] / _TWO_20
117-
except AttributeError:
118-
# fix for newer psutil
119115
for p in process.children(recursive=True):
120116
mem += getattr(p, meminfo_attr)()[0] / _TWO_20
121117
except os.OSError:

0 commit comments

Comments
 (0)