Additional logging for blocked thread pools.
This commit is contained in:
parent
7d49c77d1a
commit
8fcce9fba5
1 changed files with 7 additions and 0 deletions
|
@ -60,6 +60,13 @@ class DeadlockDetector(private val handler: Handler, private val pollingInterval
|
|||
|
||||
val executor: ThreadPoolExecutor = executorInfo.executor as ThreadPoolExecutor
|
||||
Log.w(TAG, buildLogString("Found a full executor! ${executor.activeCount}/${executor.corePoolSize} threads active with ${executor.queue.size} tasks queued.", fullMap))
|
||||
|
||||
val runnableStringBuilder = StringBuilder()
|
||||
executor.queue.forEach { runnable ->
|
||||
runnableStringBuilder.append(runnable.toString()).append("\n")
|
||||
}
|
||||
|
||||
Log.w(TAG, "Queue:\n${runnableStringBuilder}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue