sclass AllThreadsProfiler extends AbstractProfiler { toString { ret shortClassName(this); } void stepImpl() { Map map = runnableThreadsWithStackTraces(); lock lock; samples++; for (t, stackTrace : map) if (!isSystemThread(t)) addSample(stackTrace); } }