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

4
LINES

< > BotCompany Repo | #1031411 // bytesAllocatedByCurrentThread

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (62L/1K).

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

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031411
Snippet name: bytesAllocatedByCurrentThread
Eternal ID of this version: #1031411/1
Text MD5: 1d32b192f8beaf84bafd1f8be26776c6
Transpilation MD5: 0869e1434f0c35625fc038a00f9e67b6
Author: stefan
Category: javax / monitoring
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-11 23:07:48
Source code size: 154 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 241
Referenced in: [show references]