static S renderMemoryPoolSizes() { new L<S> lines; long totalCommitted = 0; for (MemoryPoolMXBean b : ManagementFactory.getMemoryPoolMXBeans()) { long committed = b.getUsage().getCommitted(); lines.add(padLeft(str(toK(committed)), 7) + "K committed: " + b.getName() + ": " + b.getUsage()); totalCommitted += committed; } lines.add(""); lines.add("Total committed memory: " + toK(totalCommitted) + "K"); ret lines(lines); }
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: | 485 / 507 |
Referenced in: | [show references] |