1 | static S renderMemoryPoolSizes() { |
2 | new L<S> lines; |
3 | long totalCommitted = 0; |
4 | for (MemoryPoolMXBean b : ManagementFactory.getMemoryPoolMXBeans()) { |
5 | long committed = b.getUsage().getCommitted(); |
6 | lines.add(padLeft(str(toK(committed)), 7) + "K committed: " + b.getName() + ": " + b.getUsage()); |
7 | totalCommitted += committed; |
8 | } |
9 | lines.add(""); |
10 | lines.add("Total committed memory: " + toK(totalCommitted) + "K"); |
11 | ret lines(lines); |
12 | } |
Began life as a copy of #1009123
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013580 |
Snippet name: | renderMemoryPoolSizes |
Eternal ID of this version: | #1013580/1 |
Text MD5: | 40299df44d764c7a4d19e558d33ef237 |
Author: | stefan |
Category: | javax / monitoring |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-10 16:08:43 |
Source code size: | 460 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 486 / 508 |
Referenced in: | [show references] |