kopia lustrzana https://github.com/ryukoposting/Signal-Android
Additional logging for blocked thread pools.
rodzic
7d49c77d1a
commit
8fcce9fba5
|
@ -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}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue