We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e5a02 commit 4fe1d57Copy full SHA for 4fe1d57
1 file changed
memory_profiler.py
@@ -112,10 +112,6 @@ def ps_util_tool():
112
mem = getattr(process, meminfo_attr)()[0] / _TWO_20
113
if include_children:
114
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
119
for p in process.children(recursive=True):
120
mem += getattr(p, meminfo_attr)()[0] / _TWO_20
121
except os.OSError:
0 commit comments