Android App Performance Metrics

Authors
  • Amit Shekhar
    Name
    Amit Shekhar
    Published on
Android App Performance Metrics

I am Amit Shekhar, a mentor helping developers in getting high-paying tech jobs.

In this blog, we will learn about the metrics that we should measure continuously while android application development.

Frames Per Second

This metric is very important as it tells, how your android application is being experienced by the end user. So tracking this metric and improving will lead to a better user experience. If the FPS is coming below 60, the end user will see your application lagging.

How do you measure this metric?

  1. On your mobile device, go to Settings -> Developer Options.
  2. In the Monitoring section, select Profile GPU Rendering.
  3. In the Profile GPU Rendering popup, choose On screen as bars to overlay the graphs on the screen of your mobile device.
  4. Go to the app that you want to profile.

CPU

This metric is important as it will tell you how much CPU is being used by your application. More the CPU consumption, more the battery consumption. So, you must track and improve this metric.

The real-time CPU usage can be directly seen in the monitor tab of the Android Studio.

Memory

The metric tells you about how much memory is being used by your application while running. If your application is taking more memory, then it can easily go out of memory error. So, you should track and reduce memory usage as much as possible. This metric can also be tracked from the Android Studio’s monitors tab. Soon I will write an article on how to reduce memory usage.

Network Traffic

Network Traffic metric tells you about the network request being made from your apps. So, monitor all the traffic generated by your app, make sure to remove all unnecessary requests and stop draining your user’s data. The transmit and receive of data can be tracked from the Android Studio’s monitors tab.

There are many ways to measure this metric like by adding the NetworkInterceptor in the OkHttpClient (How to add?).

Disk

This metric is also very important as using more space on disk leads to the uninstall. So, reducing disk memory consumption leads to the higher user retention time. So start tracking and keep reducing the disk memory usage.

So, now we know the metrics that we should measure continuously while android application development.

Master Kotlin Coroutines from here: Mastering Kotlin Coroutines

That's it for now.

Thanks

Amit Shekhar

You can connect with me on:

Read all of my high-quality blogs here.