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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access