##// END OF EJS Templates
process-management: show sum of RSS memory for whole process tree.
marcink -
r1901:7a83865c default
parent child Browse files
Show More
@@ -37,9 +37,10 b''
37 37 VMS:${h.format_byte_size_binary(mem.vms)}
38 38 </td>
39 39 <td>
40 MASTER [children: ${len(children)}]
40 MASTER
41 41 </td>
42 42 </tr>
43 <% mem_sum = 0 %>
43 44 % for proc_child in children:
44 45 <% mem = proc_child.memory_info()%>
45 46 <tr>
@@ -59,6 +60,7 b''
59 60 </td>
60 61 <td>
61 62 RSS:${h.format_byte_size_binary(mem.rss)}
63 <% mem_sum += mem.rss %>
62 64 </td>
63 65 <td>
64 66 VMS:${h.format_byte_size_binary(mem.vms)}
@@ -70,6 +72,13 b''
70 72 </td>
71 73 </tr>
72 74 % endfor
75 <tr>
76 <td colspan="2"><code>| total processes: ${len(children)}</code></td>
77 <td></td>
78 <td><strong>RSS:${h.format_byte_size_binary(mem_sum)}</strong></td>
79 <td></td>
80 </tr>
81 <tr><td> <code> - </code> </td></tr>
73 82
74 83 % endif
75 84 % endfor
General Comments 0
You need to be logged in to leave comments. Login now