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

14
LINES

< > BotCompany Repo | #1036380 // AllThreadsProfiler

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

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

sclass AllThreadsProfiler extends AbstractProfiler {
  toString {
    ret shortClassName(this);
  }

  void stepImpl() {
    Map<Thread, StackTraceElement[]> map = runnableThreadsWithStackTraces();
    lock lock;
    samples++;
    for (t, stackTrace : map)
      if (!isSystemThread(t))
        addSample(stackTrace);
  }
}

Author comment

Began life as a copy of #1035050

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036380
Snippet name: AllThreadsProfiler
Eternal ID of this version: #1036380/3
Text MD5: 4c4a8a6b6df8e43e771f76a531687ebf
Transpilation MD5: c2b180a7ed959d69f95ebb1dd7493dc3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-30 12:01:20
Source code size: 337 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 121 / 186
Version history: 2 change(s)
Referenced in: [show references]