Libraryless. Click here for Pure Java version (1021L/7K/27K).
!7 p-tt { gc(); long totalCommitted = 0; for (MemoryPoolMXBean b : ManagementFactory.getMemoryPoolMXBeans()) { long committed = b.getUsage().getCommitted(); print(padLeft(str(toK(committed)), 7) + "K committed: " + b.getName() + ": " + b.getUsage()); totalCommitted += committed; } print("\nTotal committed memory: " + toK(totalCommitted) + "K"); }
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: | 540 / 645 |
Version history: | 7 change(s) |
Referenced in: | #1010044 - memoryBeans_totalCommitted - pretty much all the native memory used by the VM except for its own code #1013580 - renderMemoryPoolSizes |