Extract basic counters from thread time in state

Introduce a thread-level counter for each cpu cluster as reported by
time in state.

These basic counters sum ticks spent at individual frequencies together
for simplicity. They will enable basic metrics like total CPU time by
process or thread.

Bug: 153092449
Test: tools/diff_test_trace_processor.py
Change-Id: I8394595decab77786ddc3252d2b8da4eda05ca6d
diff --git a/test/trace_processor/index b/test/trace_processor/index
index 46f83e4..5eda8af 100644
--- a/test/trace_processor/index
+++ b/test/trace_processor/index
@@ -207,3 +207,6 @@
 
 # Trace size
 ../data/android_sched_and_ps.pb trace_size.sql android_sched_and_ps_trace_size.out
+
+# Thread time_in_state
+thread_time_in_state.textproto thread_time_in_state.sql thread_time_in_state.out