tp: refactor code to split fuchsia_record and systrace_line
This allows trace_sorter to be split into its own component instead of
being in the global space
Change-Id: I251a3ca64e25e575b289c7a12b003ea73905d7ff
diff --git a/Android.bp b/Android.bp
index 3ab84b3..959f21e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1972,10 +1972,13 @@
":perfetto_src_trace_processor_ftrace_descriptors",
":perfetto_src_trace_processor_importers_android_bugreport_android_bugreport",
":perfetto_src_trace_processor_importers_common_common",
+ ":perfetto_src_trace_processor_importers_common_trace_parser",
+ ":perfetto_src_trace_processor_importers_fuchsia_fuchsia_record",
":perfetto_src_trace_processor_importers_importers_full",
":perfetto_src_trace_processor_importers_memory_tracker_graph_processor",
":perfetto_src_trace_processor_importers_proto_storage_full",
":perfetto_src_trace_processor_importers_proto_storage_minimal",
+ ":perfetto_src_trace_processor_importers_systrace_systrace_line",
":perfetto_src_trace_processor_lib",
":perfetto_src_trace_processor_metatrace",
":perfetto_src_trace_processor_metrics_metrics",
@@ -9166,6 +9169,11 @@
],
}
+// GN: //src/trace_processor/importers/common:trace_parser
+filegroup {
+ name: "perfetto_src_trace_processor_importers_common_trace_parser",
+}
+
// GN: //src/trace_processor/importers/common:unittests
filegroup {
name: "perfetto_src_trace_processor_importers_common_unittests",
@@ -9181,6 +9189,14 @@
],
}
+// GN: //src/trace_processor/importers/fuchsia:fuchsia_record
+filegroup {
+ name: "perfetto_src_trace_processor_importers_fuchsia_fuchsia_record",
+ srcs: [
+ "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
+ ],
+}
+
// GN: //src/trace_processor/importers:gen_cc_chrome_track_event_descriptor
genrule {
name: "perfetto_src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
@@ -9272,7 +9288,6 @@
"src/trace_processor/importers/ftrace/thread_state_tracker.cc",
"src/trace_processor/importers/ftrace/v4l2_tracker.cc",
"src/trace_processor/importers/ftrace/virtio_video_tracker.cc",
- "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
"src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
"src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
"src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
@@ -9341,6 +9356,11 @@
],
}
+// GN: //src/trace_processor/importers/systrace:systrace_line
+filegroup {
+ name: "perfetto_src_trace_processor_importers_systrace_systrace_line",
+}
+
// GN: //src/trace_processor:lib
filegroup {
name: "perfetto_src_trace_processor_lib",
@@ -11191,12 +11211,15 @@
":perfetto_src_trace_processor_importers_android_bugreport_android_bugreport",
":perfetto_src_trace_processor_importers_android_bugreport_unittests",
":perfetto_src_trace_processor_importers_common_common",
+ ":perfetto_src_trace_processor_importers_common_trace_parser",
":perfetto_src_trace_processor_importers_common_unittests",
+ ":perfetto_src_trace_processor_importers_fuchsia_fuchsia_record",
":perfetto_src_trace_processor_importers_importers_full",
":perfetto_src_trace_processor_importers_memory_tracker_graph_processor",
":perfetto_src_trace_processor_importers_proto_storage_full",
":perfetto_src_trace_processor_importers_proto_storage_minimal",
":perfetto_src_trace_processor_importers_proto_unittests",
+ ":perfetto_src_trace_processor_importers_systrace_systrace_line",
":perfetto_src_trace_processor_lib",
":perfetto_src_trace_processor_metatrace",
":perfetto_src_trace_processor_metrics_metrics",
@@ -11833,10 +11856,13 @@
":perfetto_src_trace_processor_ftrace_descriptors",
":perfetto_src_trace_processor_importers_android_bugreport_android_bugreport",
":perfetto_src_trace_processor_importers_common_common",
+ ":perfetto_src_trace_processor_importers_common_trace_parser",
+ ":perfetto_src_trace_processor_importers_fuchsia_fuchsia_record",
":perfetto_src_trace_processor_importers_importers_full",
":perfetto_src_trace_processor_importers_memory_tracker_graph_processor",
":perfetto_src_trace_processor_importers_proto_storage_full",
":perfetto_src_trace_processor_importers_proto_storage_minimal",
+ ":perfetto_src_trace_processor_importers_systrace_systrace_line",
":perfetto_src_trace_processor_lib",
":perfetto_src_trace_processor_metatrace",
":perfetto_src_trace_processor_metrics_metrics",
@@ -12026,10 +12052,13 @@
":perfetto_src_trace_processor_ftrace_descriptors",
":perfetto_src_trace_processor_importers_android_bugreport_android_bugreport",
":perfetto_src_trace_processor_importers_common_common",
+ ":perfetto_src_trace_processor_importers_common_trace_parser",
+ ":perfetto_src_trace_processor_importers_fuchsia_fuchsia_record",
":perfetto_src_trace_processor_importers_importers_full",
":perfetto_src_trace_processor_importers_memory_tracker_graph_processor",
":perfetto_src_trace_processor_importers_proto_storage_full",
":perfetto_src_trace_processor_importers_proto_storage_minimal",
+ ":perfetto_src_trace_processor_importers_systrace_systrace_line",
":perfetto_src_trace_processor_lib",
":perfetto_src_trace_processor_metatrace",
":perfetto_src_trace_processor_metrics_metrics",