I’d love to profile better but the android studio profiling tools segfault my app
That’s worrying. Are you by any chance able to share the app on github so I can pass this to the Android Studio team? Alternatively you can file a bug by going to Help->Submit feedback which will pre-fill the issue tracker with your host environment info.
If Android Studio isn’t working for you, you can always try systrace. I wrote an article about it here: https://medium.com/@donturner/debugging-audio-glitches-on-android-ed10782f9c64
I’m getting glitches on android 9 at only 20% cpu.
What device are you testing with? Also, are you using Oboe as the backend? There is a
StabilizedCallback class inside Oboe which attempts to keep the CPU spinning inside the callback so that the governor doesn’t scale down the CPU frequency, is that what you’re referring to?