Search code examples
androidfirebaseandroid-fragmentsfirebase-performance

How to track frame metrics for Fragments with Firebase performance?


Firebase Performance monitoring SDK for Android automatically tracks slow rendering and frozen frames for Activity. But there's no such data for Fragment. For example if activity A hosts 3 fragments, then it'll report slow rendering and frozen frames for activity A but there's no way of knowing which fragment is causing that. Is there a way to implement similar screen tracing for fragments?


Solution

  • Firebase performance now captures performance metrics for Fragments Out of the box. Please integrate to the Android SDK version 20.1.0 or above to start seeing the fragment metrics on the console.

    More details on the feature and what to expect are here: https://firebase.google.com/docs/perf-mon/screen-traces?platform=android