Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1033098 // bytesAllocatedByCurrentThread

JavaX fragment (include)

static long bytesAllocatedByCurrentThread() {
  if (!threadAllocatedMemorySane()) ret -1;
  var bean = advancedThreadMXBean();
  ret bean == null ? 0 : bean.getThreadAllocatedBytes(threadID());
}

Author comment

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: 140 / 150
Referenced in: [show references]