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 for Android. However, we introduced its most basic usage, and postponed more specific Android and Dalvik VM usage for the next chapter.
To be able to quantify your testing efforts in the next chapter, we will be executing coverage reports on our...