mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-20 11:08:31 +00:00
Additional logging for blocked thread pools.
This commit is contained in:
@@ -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}")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user