Is there a way to gather runtime metrics on the nu...
# coroutines
r
Is there a way to gather runtime metrics on the number of running coroutines and where they were created/launched? The use case is finding leaked coroutines in a large code base. Thanks.
k
If you’re on JVM you can install debug probes and dumpCoroutines. Nothing exists for other platforms yet at the moment.
đź‘€ 1
r
That works nicely. Thank you.
n
There is a very old related feature request: https://github.com/Kotlin/kotlinx.coroutines/issues/1360
r
Unfortunately this needs
java.lang.management.ManagementFactory
which isn't supported on Android.