Skip to content

Commit ea08ce8

Browse files
authored
included memory_metric
1 parent 2246640 commit ea08ce8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

memory_profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _ps_util_full_tool(memory_metric):
164164
mem = getattr(meminfo, memory_metric) / _TWO_20
165165

166166
if include_children:
167-
mem += sum([mem for (pid, mem) in _get_child_memory(process, meminfo_attr)])
167+
mem += sum([mem for (pid, mem) in _get_child_memory(process, meminfo_attr, memory_metric)])
168168

169169
if timestamps:
170170
return mem, time.time()

0 commit comments

Comments
 (0)