static long bytesAllocatedByCurrentThread() { if (!threadAllocatedMemorySane()) ret -1; var bean = advancedThreadMXBean(); ret bean == null ? 0 : bean.getThreadAllocatedBytes(threadID()); }
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: | 141 / 151 |
Referenced in: | #1033099 - bytesAllocated #1033346 - currentThreadTotalCPUNanos |