trace_processor: add linux cpuidle time in state calculation
This counter tracks the percentage of time spent in each state over time.
The module also surfaces the:
- total residency of each state, and
- (time_slice) time spent in all states
which are used to calculate the percentage.
Bug: 337135369
Test: diff test
Change-Id: I74ac58bd74939c5e129c4e810c16f6ba80546adb
diff --git a/Android.bp b/Android.bp
index e5c5c4c..fc6184b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -13320,6 +13320,7 @@
"src/trace_processor/perfetto_sql/stdlib/linux/cpu/frequency.sql",
"src/trace_processor/perfetto_sql/stdlib/linux/cpu/idle.sql",
"src/trace_processor/perfetto_sql/stdlib/linux/cpu/idle_stats.sql",
+ "src/trace_processor/perfetto_sql/stdlib/linux/cpu/idle_time_in_state.sql",
"src/trace_processor/perfetto_sql/stdlib/linux/cpu/utilization/general.sql",
"src/trace_processor/perfetto_sql/stdlib/linux/cpu/utilization/process.sql",
"src/trace_processor/perfetto_sql/stdlib/linux/cpu/utilization/system.sql",