Add SurfaceFlinger custom data sources
Bug: b/284424481
Test: tested in following CLs through new TP tables
Change-Id: If7dc9e47bf92f3c45bb4c374e254f5f7daae0bd5
diff --git a/Android.bp b/Android.bp
index 1e0bab9..3807849 100644
--- a/Android.bp
+++ b/Android.bp
@@ -2642,6 +2642,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
],
tools: [
"aprotoc",
@@ -2655,6 +2656,7 @@
"external/perfetto/protos/perfetto/config/android/android_system_property_config.gen.cc",
"external/perfetto/protos/perfetto/config/android/network_trace_config.gen.cc",
"external/perfetto/protos/perfetto/config/android/packages_list_config.gen.cc",
+ "external/perfetto/protos/perfetto/config/android/surfaceflinger_layers_config.gen.cc",
],
}
@@ -2668,6 +2670,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
],
tools: [
"aprotoc",
@@ -2681,6 +2684,7 @@
"external/perfetto/protos/perfetto/config/android/android_system_property_config.gen.h",
"external/perfetto/protos/perfetto/config/android/network_trace_config.gen.h",
"external/perfetto/protos/perfetto/config/android/packages_list_config.gen.h",
+ "external/perfetto/protos/perfetto/config/android/surfaceflinger_layers_config.gen.h",
],
export_include_dirs: [
".",
@@ -2698,6 +2702,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
],
tools: [
"aprotoc",
@@ -2710,6 +2715,7 @@
"external/perfetto/protos/perfetto/config/android/android_system_property_config.pb.cc",
"external/perfetto/protos/perfetto/config/android/network_trace_config.pb.cc",
"external/perfetto/protos/perfetto/config/android/packages_list_config.pb.cc",
+ "external/perfetto/protos/perfetto/config/android/surfaceflinger_layers_config.pb.cc",
],
}
@@ -2723,6 +2729,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
],
tools: [
"aprotoc",
@@ -2735,6 +2742,7 @@
"external/perfetto/protos/perfetto/config/android/android_system_property_config.pb.h",
"external/perfetto/protos/perfetto/config/android/network_trace_config.pb.h",
"external/perfetto/protos/perfetto/config/android/packages_list_config.pb.h",
+ "external/perfetto/protos/perfetto/config/android/surfaceflinger_layers_config.pb.h",
],
export_include_dirs: [
".",
@@ -2752,6 +2760,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
],
tools: [
"aprotoc",
@@ -2765,6 +2774,7 @@
"external/perfetto/protos/perfetto/config/android/android_system_property_config.pbzero.cc",
"external/perfetto/protos/perfetto/config/android/network_trace_config.pbzero.cc",
"external/perfetto/protos/perfetto/config/android/packages_list_config.pbzero.cc",
+ "external/perfetto/protos/perfetto/config/android/surfaceflinger_layers_config.pbzero.cc",
],
}
@@ -2778,6 +2788,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
],
tools: [
"aprotoc",
@@ -2791,6 +2802,7 @@
"external/perfetto/protos/perfetto/config/android/android_system_property_config.pbzero.h",
"external/perfetto/protos/perfetto/config/android/network_trace_config.pbzero.h",
"external/perfetto/protos/perfetto/config/android/packages_list_config.pbzero.h",
+ "external/perfetto/protos/perfetto/config/android/surfaceflinger_layers_config.pbzero.h",
],
export_include_dirs: [
".",
@@ -2884,6 +2896,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
"protos/perfetto/config/chrome/chrome_config.proto",
"protos/perfetto/config/chrome/scenario_config.proto",
"protos/perfetto/config/data_source_config.proto",
@@ -4571,6 +4584,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
],
tools: [
"aprotoc",
@@ -4588,6 +4604,9 @@
"external/perfetto/protos/perfetto/trace/android/initial_display_state.gen.cc",
"external/perfetto/protos/perfetto/trace/android/network_trace.gen.cc",
"external/perfetto/protos/perfetto/trace/android/packages_list.gen.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_common.gen.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_layers.gen.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_transactions.gen.cc",
],
}
@@ -4605,6 +4624,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
],
tools: [
"aprotoc",
@@ -4622,6 +4644,9 @@
"external/perfetto/protos/perfetto/trace/android/initial_display_state.gen.h",
"external/perfetto/protos/perfetto/trace/android/network_trace.gen.h",
"external/perfetto/protos/perfetto/trace/android/packages_list.gen.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_common.gen.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_layers.gen.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_transactions.gen.h",
],
export_include_dirs: [
".",
@@ -4643,6 +4668,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
],
tools: [
"aprotoc",
@@ -4659,6 +4687,9 @@
"external/perfetto/protos/perfetto/trace/android/initial_display_state.pb.cc",
"external/perfetto/protos/perfetto/trace/android/network_trace.pb.cc",
"external/perfetto/protos/perfetto/trace/android/packages_list.pb.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_common.pb.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_layers.pb.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_transactions.pb.cc",
],
}
@@ -4676,6 +4707,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
],
tools: [
"aprotoc",
@@ -4692,6 +4726,9 @@
"external/perfetto/protos/perfetto/trace/android/initial_display_state.pb.h",
"external/perfetto/protos/perfetto/trace/android/network_trace.pb.h",
"external/perfetto/protos/perfetto/trace/android/packages_list.pb.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_common.pb.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_layers.pb.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_transactions.pb.h",
],
export_include_dirs: [
".",
@@ -4713,6 +4750,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
],
tools: [
"aprotoc",
@@ -4730,6 +4770,9 @@
"external/perfetto/protos/perfetto/trace/android/initial_display_state.pbzero.cc",
"external/perfetto/protos/perfetto/trace/android/network_trace.pbzero.cc",
"external/perfetto/protos/perfetto/trace/android/packages_list.pbzero.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_common.pbzero.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_layers.pbzero.cc",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_transactions.pbzero.cc",
],
}
@@ -4747,6 +4790,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
],
tools: [
"aprotoc",
@@ -4764,6 +4810,9 @@
"external/perfetto/protos/perfetto/trace/android/initial_display_state.pbzero.h",
"external/perfetto/protos/perfetto/trace/android/network_trace.pbzero.h",
"external/perfetto/protos/perfetto/trace/android/packages_list.pbzero.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_common.pbzero.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_layers.pbzero.h",
+ "external/perfetto/protos/perfetto/trace/android/surfaceflinger_transactions.pbzero.h",
],
export_include_dirs: [
".",
@@ -4927,6 +4976,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
"protos/perfetto/config/chrome/chrome_config.proto",
"protos/perfetto/config/chrome/scenario_config.proto",
"protos/perfetto/config/data_source_config.proto",
@@ -4959,6 +5009,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
"protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
"protos/perfetto/trace/chrome/chrome_metadata.proto",
"protos/perfetto/trace/chrome/chrome_trace_event.proto",
@@ -11634,6 +11687,7 @@
"protos/perfetto/config/android/android_system_property_config.proto",
"protos/perfetto/config/android/network_trace_config.proto",
"protos/perfetto/config/android/packages_list_config.proto",
+ "protos/perfetto/config/android/surfaceflinger_layers_config.proto",
"protos/perfetto/config/chrome/chrome_config.proto",
"protos/perfetto/config/chrome/scenario_config.proto",
"protos/perfetto/config/data_source_config.proto",
@@ -11666,6 +11720,9 @@
"protos/perfetto/trace/android/initial_display_state.proto",
"protos/perfetto/trace/android/network_trace.proto",
"protos/perfetto/trace/android/packages_list.proto",
+ "protos/perfetto/trace/android/surfaceflinger_common.proto",
+ "protos/perfetto/trace/android/surfaceflinger_layers.proto",
+ "protos/perfetto/trace/android/surfaceflinger_transactions.proto",
"protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
"protos/perfetto/trace/chrome/chrome_metadata.proto",
"protos/perfetto/trace/chrome/chrome_trace_event.proto",
@@ -13587,6 +13644,16 @@
],
}
+java_library {
+ name: "perfetto_config-lite",
+ proto: {
+ type: "lite",
+ },
+ srcs: [
+ "protos/perfetto/config/perfetto_config.proto",
+ ],
+}
+
java_library_host {
name: "perfetto_trace-full",
proto: {