1 | svoid monitorThreadAllocatedMemory() { |
2 | ThreadMXBean bean = threadMXBean(); |
3 | |
4 | if (bean instanceof com.sun.management.ThreadMXBean && |
5 | ((com.sun.management.ThreadMXBean) bean).isThreadAllocatedMemorySupported()) |
6 | ((com.sun.management.ThreadMXBean) bean).setThreadAllocatedMemoryEnabled(true); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016743 |
Snippet name: | monitorThreadAllocatedMemory |
Eternal ID of this version: | #1016743/3 |
Text MD5: | b4907c22724cc40e2de9696a35e4df6a |
Author: | stefan |
Category: | javax / monitoring |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-30 21:31:23 |
Source code size: | 313 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 407 / 440 |
Version history: | 2 change(s) |
Referenced in: | [show references] |