Add ATRACE calls to Adaptive CPU.

This allows us to measure the performance of Adaptive CPU with Perfetto
traces (with power or hal tags enabled).

I've collected some traces of Adaptive CPU running on a raven:
- Average duration of the RunMainLoop_compute code is ~400-500us.
- Enabling tracing increases runtime by ~10%.
- Enabling debug logging increases runtime by ~20%.
- Adding disabled ATRACE calls does not seem to impact runtime.

Test: manual inspection of traces
Bug: 188770301
Change-Id: Ib0313eaff7c1a9bf06f3acab8478d5f9d72cb476
7 files changed