trace_processor: Remove PERFETTO_TP_GRAPHICS build flag
Instead of the flag, we now build the graphics module with the 'lib'
target, but not with the 'storage' target.
VulkanMemoryTracker is moved into GraphicsEventParser, because this is
the only place where it's used.
Bug: 141459049
Change-Id: I4149e9634ae623ec00aef72cd7ef168a9ea940c6
diff --git a/Android.bp b/Android.bp
index ef8d66b..7a3a115 100644
--- a/Android.bp
+++ b/Android.bp
@@ -4777,9 +4777,20 @@
],
}
-// GN: //src/trace_processor:storage
+// GN: //src/trace_processor:storage_full
filegroup {
- name: "perfetto_src_trace_processor_storage",
+ name: "perfetto_src_trace_processor_storage_full",
+ srcs: [
+ "src/trace_processor/importers/proto/graphics_event_module.cc",
+ "src/trace_processor/importers/proto/graphics_event_parser.cc",
+ "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
+ "src/trace_processor/register_additional_modules.cc",
+ ],
+}
+
+// GN: //src/trace_processor:storage_minimal
+filegroup {
+ name: "perfetto_src_trace_processor_storage_minimal",
srcs: [
"src/trace_processor/args_tracker.cc",
"src/trace_processor/binder_tracker.cc",
@@ -4802,8 +4813,6 @@
"src/trace_processor/importers/proto/android_probes_module.cc",
"src/trace_processor/importers/proto/android_probes_parser.cc",
"src/trace_processor/importers/proto/args_table_utils.cc",
- "src/trace_processor/importers/proto/graphics_event_module.cc",
- "src/trace_processor/importers/proto/graphics_event_parser.cc",
"src/trace_processor/importers/proto/heap_graph_module.cc",
"src/trace_processor/importers/proto/heap_graph_tracker.cc",
"src/trace_processor/importers/proto/heap_graph_walker.cc",
@@ -4828,7 +4837,6 @@
"src/trace_processor/trace_storage.cc",
"src/trace_processor/track_tracker.cc",
"src/trace_processor/virtual_destructors.cc",
- "src/trace_processor/vulkan_memory_tracker.cc",
],
}
@@ -5613,7 +5621,8 @@
":perfetto_src_trace_processor_metrics_unittests",
":perfetto_src_trace_processor_sqlite_sqlite",
":perfetto_src_trace_processor_sqlite_unittests",
- ":perfetto_src_trace_processor_storage",
+ ":perfetto_src_trace_processor_storage_full",
+ ":perfetto_src_trace_processor_storage_minimal",
":perfetto_src_trace_processor_tables_tables",
":perfetto_src_trace_processor_tables_unittests",
":perfetto_src_trace_processor_unittests",
@@ -5830,7 +5839,8 @@
":perfetto_src_trace_processor_lib",
":perfetto_src_trace_processor_metrics_lib",
":perfetto_src_trace_processor_sqlite_sqlite",
- ":perfetto_src_trace_processor_storage",
+ ":perfetto_src_trace_processor_storage_full",
+ ":perfetto_src_trace_processor_storage_minimal",
":perfetto_src_trace_processor_tables_tables",
"src/trace_processor/proto_to_json.cc",
"src/trace_processor/trace_processor_shell.cc",
@@ -5936,7 +5946,8 @@
":perfetto_src_trace_processor_lib",
":perfetto_src_trace_processor_metrics_lib",
":perfetto_src_trace_processor_sqlite_sqlite",
- ":perfetto_src_trace_processor_storage",
+ ":perfetto_src_trace_processor_storage_full",
+ ":perfetto_src_trace_processor_storage_minimal",
":perfetto_src_trace_processor_tables_tables",
":perfetto_tools_trace_to_text_common",
":perfetto_tools_trace_to_text_full",