google / coroutine-stacks

Apache License 2.0
137 stars 6 forks source link

Add support for Android Studio #3

Open nikita-nazarov opened 8 months ago

nikita-nazarov commented 8 months ago

Currently the plugin will not work in Android Studio. The reason for that is that internally the plugin relies on a Java agent that enables collecting information about coroutines: where they were created, suspended, resumed etc. Unfortunately it is not possible to attach such agent to the ART VM. However there were attempts to replace the Java agent with the JVMTI one, this implementation never landed.

To implement this feature we can ship the plugin with the JVTI agent that would enable capability to collect information about coroutines.

brighthr-stanton commented 4 weeks ago

Could this plugin still be made available for developers working on kotlin-jvm only modules/libraries within a wider Android project monorepo?

nikita-nazarov commented 4 weeks ago

Hi @brighthr-stanton! Ok, I will add it. The only concern is that since the plugin will be available in Android Studio, people will expect this plugin to work in Android Projects. I will add a large warning that it will only work on ordinary JVMs.