Libraryless. Click here for Pure Java version (11221L/62K).
1 | sclass AllThreadsProfiler extends AbstractProfiler {
|
2 | toString {
|
3 | ret shortClassName(this); |
4 | } |
5 | |
6 | void stepImpl() {
|
7 | Map<Thread, StackTraceElement[]> map = runnableThreadsWithStackTraces(); |
8 | lock lock; |
9 | samples++; |
10 | for (t, stackTrace : map) |
11 | if (!isSystemThread(t)) |
12 | addSample(stackTrace); |
13 | } |
14 | } |
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: | 611 / 744 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |