##// 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 VMS:${h.format_byte_size_binary(mem.vms)}
37 VMS:${h.format_byte_size_binary(mem.vms)}
38 </td>
38 </td>
39 <td>
39 <td>
40 MASTER [children: ${len(children)}]
40 MASTER
41 </td>
41 </td>
42 </tr>
42 </tr>
43 <% mem_sum = 0 %>
43 % for proc_child in children:
44 % for proc_child in children:
44 <% mem = proc_child.memory_info()%>
45 <% mem = proc_child.memory_info()%>
45 <tr>
46 <tr>
@@ -59,6 +60,7 b''
59 </td>
60 </td>
60 <td>
61 <td>
61 RSS:${h.format_byte_size_binary(mem.rss)}
62 RSS:${h.format_byte_size_binary(mem.rss)}
63 <% mem_sum += mem.rss %>
62 </td>
64 </td>
63 <td>
65 <td>
64 VMS:${h.format_byte_size_binary(mem.vms)}
66 VMS:${h.format_byte_size_binary(mem.vms)}
@@ -70,6 +72,13 b''
70 </td>
72 </td>
71 </tr>
73 </tr>
72 % endfor
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 % endif
83 % endif
75 % endfor
84 % endfor
General Comments 0
You need to be logged in to leave comments. Login now