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/BUILD b/BUILD
index 882900a..e670164 100644
--- a/BUILD
+++ b/BUILD
@@ -770,9 +770,24 @@
],
)
-# GN target: //src/trace_processor:storage
+# GN target: //src/trace_processor:storage_full
filegroup(
- name = "src_trace_processor_storage",
+ name = "src_trace_processor_storage_full",
+ srcs = [
+ "src/trace_processor/importers/proto/graphics_event_module.cc",
+ "src/trace_processor/importers/proto/graphics_event_module.h",
+ "src/trace_processor/importers/proto/graphics_event_parser.cc",
+ "src/trace_processor/importers/proto/graphics_event_parser.h",
+ "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
+ "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
+ "src/trace_processor/register_additional_modules.cc",
+ "src/trace_processor/register_additional_modules.h",
+ ],
+)
+
+# GN target: //src/trace_processor:storage_minimal
+filegroup(
+ name = "src_trace_processor_storage_minimal",
srcs = [
"src/trace_processor/args_tracker.cc",
"src/trace_processor/args_tracker.h",
@@ -823,10 +838,6 @@
"src/trace_processor/importers/proto/args_table_utils.cc",
"src/trace_processor/importers/proto/args_table_utils.h",
"src/trace_processor/importers/proto/chrome_compositor_scheduler_state.descriptor.h",
- "src/trace_processor/importers/proto/graphics_event_module.cc",
- "src/trace_processor/importers/proto/graphics_event_module.h",
- "src/trace_processor/importers/proto/graphics_event_parser.cc",
- "src/trace_processor/importers/proto/graphics_event_parser.h",
"src/trace_processor/importers/proto/heap_graph_module.cc",
"src/trace_processor/importers/proto/heap_graph_module.h",
"src/trace_processor/importers/proto/heap_graph_tracker.cc",
@@ -885,8 +896,6 @@
"src/trace_processor/track_tracker.h",
"src/trace_processor/variadic.h",
"src/trace_processor/virtual_destructors.cc",
- "src/trace_processor/vulkan_memory_tracker.cc",
- "src/trace_processor/vulkan_memory_tracker.h",
],
)
@@ -2515,7 +2524,8 @@
":src_trace_processor_lib",
":src_trace_processor_metrics_lib",
":src_trace_processor_sqlite_sqlite",
- ":src_trace_processor_storage",
+ ":src_trace_processor_storage_full",
+ ":src_trace_processor_storage_minimal",
":src_trace_processor_tables_tables",
],
hdrs = [
@@ -2594,7 +2604,8 @@
":src_trace_processor_rpc_httpd",
":src_trace_processor_rpc_rpc",
":src_trace_processor_sqlite_sqlite",
- ":src_trace_processor_storage",
+ ":src_trace_processor_storage_full",
+ ":src_trace_processor_storage_minimal",
":src_trace_processor_tables_tables",
],
visibility = [
@@ -2744,7 +2755,8 @@
":src_trace_processor_lib",
":src_trace_processor_metrics_lib",
":src_trace_processor_sqlite_sqlite",
- ":src_trace_processor_storage",
+ ":src_trace_processor_storage_full",
+ ":src_trace_processor_storage_minimal",
":src_trace_processor_tables_tables",
":tools_trace_to_text_common",
":tools_trace_to_text_full",