We are working on project that requires us to collect performance events on Android. This involves a few steps:
- Recompile the kernel with the right flags. You should do this incrementally, some options may make you kernel crash at boot time. You should consider including the following flags
- Compile the perf tool. It is nicely part of the Android source and you can just compile it easily with the rest of the distribution.
- To get started with perf, you can take a look at the following one-liner examples: http://www.brendangregg.com/perf.html
Interesting power management information is spread in multiple place. Below, I will summarize some of it (as I learn it):