Libraryless. Click here for Pure Java version (1021L/7K/27K).
1 | !7 |
2 | |
3 | p-tt { |
4 | gc(); |
5 | long totalCommitted = 0; |
6 | for (MemoryPoolMXBean b : ManagementFactory.getMemoryPoolMXBeans()) { |
7 | long committed = b.getUsage().getCommitted(); |
8 | print(padLeft(str(toK(committed)), 7) + "K committed: " + b.getName() + ": " + b.getUsage()); |
9 | totalCommitted += committed; |
10 | } |
11 | print("\nTotal committed memory: " + toK(totalCommitted) + "K"); |
12 | } |
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: | #1009123 |
Snippet name: | Print MemoryPoolMXBeans |
Eternal ID of this version: | #1009123/8 |
Text MD5: | 02b71b2587cd9b371aa6006c5bf520e9 |
Transpilation MD5: | b716f5284fa07b3d76ab77faeda943ec |
Author: | stefan |
Category: | javax / monitoring |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-01 16:05:25 |
Source code size: | 383 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 541 / 647 |
Version history: | 7 change(s) |
Referenced in: | [show references] |