Systrace custom events not showing in release build of app

Viewed 402
3 Answers

Starting in Android API 29 (Q), there's a new profileable flag in the manifest that enables some profiling data (e.g. systrace custom events) for non-debuggable builds.

I think making your release build debuggable will do the trick. add following in your app module build.gradle file

  buildTypes {
    release {
        debuggable true
    }
}

Have you added the package name of your app, when you are capturing the trace. You can specify it by -a tag. Adding a package name is mandatory to see custom events in a release build.

for eg :

python systrace.py -o trace_file.html -a package_name sched freq idle am wm gfx view binder_driver hal dalvik camera input res
Related