Performance tests in Android SDK

If the previous method of adding log statements does not suit you, there are different methods of getting performance test results from our application. This is known as profiling.

When running instrumented code (as with our Android instrumented test cases), there is no standard way of getting performance test results from an Android application, as the classes used by Android tests are hidden in the Android SDK and only available to system applications, that is, applications that are built as part of the main build or system image. This strategy is not available for us, so we are not digging deeper in that direction. Instead, we will focus on other available choices.

Launching the performance test

These tests are ...

Get Learning Android Application Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.