Find who is making call to gms.persistent

90 Views Asked by At

I am working on a big java + kotlin codebase - it has services, activities, etc - which ultimately compiles to an Android apk. I am trying to improve performance of this app. I found that in Perfetto, it is showing a huge 1.4s binder transaction , relating to com.google.android.gms.persistent .

enter image description here

(I removed process names)

I want to know from where in the code is this call going to gms.persistent , but from Perfetto I am not able to find that out. Also, I was trying to figure which google api calls in general lead to such calls, but from documentation I was not able to find that out. Any help in this regard would be appreciated.

1

There are 1 best solutions below

0
On

You can use app_profiler in Android Studio to collect call samples, which may help find out who called the binding operation.

How do you start the app with the profiler in "trace java methods" mode?