Feature Request P3
Status Update
Comments
lu...@google.com <lu...@google.com>
sh...@google.com <sh...@google.com> #2
This functionality was released in benchmark 1.2.0-alpha06:
You'll need to use an Android 13 (API 33) emulator, and androidx.benchmark:benchmark-macro-junit4:1.2.0-alpha06
, which removes the requirement for root, and thus works on Play emulator images.
Description
Background
At Snapchat, we heavily leverage both RxJava and Coroutines for scheduling work across threads. At times, the calstacks get quite deep, especially with RxJava, which makes it difficult for us to analyze the sampling profiler data in Android Studio's Profiler.
Ask
It would be helpful to expand the "Collapse Frames" functionality in the Android Studio Profiler to support collpasing frames specifically for RxJava or Coroutines. This could be detected by checking the package name in the frame for
io.reactive.rxjava
orkotlin.coroutines
.The other scenario where callstacks can get deep is in some of the Android view frames; however, it's probably for the best not to collapse those frames as it may be an indicator of a view hierarchy thats too deep.