Add Android Binder metric
This metric tallies the number of Binder transactions per process. It will only work on traces with the binder_driver atrace flag enabled.
Bug: 224855483
Test: out/trace_processor_shell --run-metrics android_binder <local trace>
Test: tools/diff_test_trace_processor.py --query-metric-filter android_binder out/trace_processor_shell
Change-Id: I01e29242fde6d5303f5371f237ada3479de1ae46
diff --git a/Android.bp b/Android.bp
index a7c4677..3e771c0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3692,6 +3692,7 @@
srcs: [
"protos/perfetto/metrics/android/android_trusty_workqueues.proto",
"protos/perfetto/metrics/android/batt_metric.proto",
+ "protos/perfetto/metrics/android/binder_metric.proto",
"protos/perfetto/metrics/android/camera_metric.proto",
"protos/perfetto/metrics/android/camera_unagg_metric.proto",
"protos/perfetto/metrics/android/cpu_metric.proto",
@@ -3760,6 +3761,7 @@
srcs: [
"protos/perfetto/metrics/android/android_trusty_workqueues.proto",
"protos/perfetto/metrics/android/batt_metric.proto",
+ "protos/perfetto/metrics/android/binder_metric.proto",
"protos/perfetto/metrics/android/camera_metric.proto",
"protos/perfetto/metrics/android/camera_unagg_metric.proto",
"protos/perfetto/metrics/android/cpu_metric.proto",
@@ -8386,6 +8388,7 @@
name: "perfetto_src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
srcs: [
"src/trace_processor/metrics/sql/android/android_batt.sql",
+ "src/trace_processor/metrics/sql/android/android_binder.sql",
"src/trace_processor/metrics/sql/android/android_camera.sql",
"src/trace_processor/metrics/sql/android/android_camera_unagg.sql",
"src/trace_processor/metrics/sql/android/android_cpu.sql",