In this lesson, we’ll learn to monitor our application’s performance. We could use this knowledge to measure how long it takes to complete a given task or set of tasks within our application. A good example would be to measure tasks such as loading images or querying our local database.

Integrating Firebase Performance monitoring and using it to monitor our application involves the following steps:

  1. Creating a project on Firebase Console
  2. Adding the firebase_core and firebase_performance dependencies
  3. Initializing Firebase usage within the application
  4. Starting the custom code trace
  5. Stoping the custom code trace
  6. Viewing performance data on Firebase Console

Creating a project on Firebase Console

If you haven’t already, use the instructions from the Setting Up a Firebase Project lesson to create a project and add your Android application to Firebase Console.

Get hands-on with 1400+ tech skills courses.