Summary

In this chapter, we dissected the available alternatives for testing the performance measures of our application by benchmarking and profiling our code.

Some options that should be provided by the Android SDK are not available at the time of writing this book, and there is no way to implement Android PerformanceTestCases because some of the code is hidden in the SDK. We visited and analyzed some other valid alternatives.

Among these alternatives, we found that we can use simple log statements or more sophisticated code that extends instrumentation.

Subsequently, we analyzed profiling alternatives and described and exemplified the use of traceview and dmtracedump.

Finally, you discovered Caliper, a microbenchmarking tool that has native support ...

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.