1 | static long bytesAllocatedByCurrentThread() { |
2 | if (!threadAllocatedMemorySane()) ret -1; |
3 | var bean = advancedThreadMXBean(); |
4 | ret bean == null ? 0 : bean.getThreadAllocatedBytes(threadID()); |
5 | } |
Began life as a copy of #1031411
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033098 |
Snippet name: | bytesAllocatedByCurrentThread |
Eternal ID of this version: | #1033098/1 |
Text MD5: | 0ac77819b288288bd933e6a9d1273c4a |
Author: | stefan |
Category: | javax / monitoring |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-14 15:55:00 |
Source code size: | 199 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 142 / 152 |
Referenced in: | [show references] |