What is the impact of running the coroutines debug...
# coroutines
r
What is the impact of running the coroutines debug agent in production? I find it really useful to do
kill -5
to get insight into the running coroutines, but always see the "do not use in production" warnings.
o
the debug agent itself needs to grab a stack trace every time you create a coroutine, and probably also when it resumes, which is quite expensive if you have a lot of suspending coroutines
if you also like using the non-agent debug features, those cause a call to
Thread#setName
every single time it changes threads
r
Thx, sounds like the warnings were accurate 🙂
v
You can keep track of the issue in https://github.com/Kotlin/kotlinx.coroutines/issues/1379 If you have concerns about
setName
, please left them in the comments
👍 1
r
Oh yeah, I forgot I'm the one that created that issue (and you moved it to GitHub for me) 🙂