Add irq runtime metrics
Collect max runtime, top 10 irq runtime and long runtime over threshold count
as metrics for IRQ tasks.
Bug: 214034885
Test: <trace_processor_shell> --run-metrics android_irq_runtime \
<perfetto_trace>
Test: tools/diff_test_trace_processor.py <trace_processor_shell> \
--trace-filter='irq_runtime_metric'
Change-Id: I5d6a686e19787d5d87f6c344a4ddebd59b1e34d1
diff --git a/BUILD b/BUILD
index 3be7c1c..5f2820a 100644
--- a/BUILD
+++ b/BUILD
@@ -1049,6 +1049,7 @@
"src/trace_processor/metrics/sql/android/android_hwui_metric.sql",
"src/trace_processor/metrics/sql/android/android_hwui_threads.sql",
"src/trace_processor/metrics/sql/android/android_ion.sql",
+ "src/trace_processor/metrics/sql/android/android_irq_runtime.sql",
"src/trace_processor/metrics/sql/android/android_jank.sql",
"src/trace_processor/metrics/sql/android/android_lmk.sql",
"src/trace_processor/metrics/sql/android/android_lmk_reason.sql",
@@ -2616,6 +2617,7 @@
"protos/perfetto/metrics/android/hwcomposer.proto",
"protos/perfetto/metrics/android/hwui_metric.proto",
"protos/perfetto/metrics/android/ion_metric.proto",
+ "protos/perfetto/metrics/android/irq_runtime_metric.proto",
"protos/perfetto/metrics/android/jank_metric.proto",
"protos/perfetto/metrics/android/java_heap_histogram.proto",
"protos/perfetto/metrics/android/java_heap_stats.proto",