Add translation table importer
This CL defines ArgsTranslationTable for storing args translation
rules, and TranslationTableModule for extracting translation rules from
trace packets.
The table is populated and stored in TraceProcessor context, but it's not
used for translating args yet, so there should be no user-visible
behavior changes.
The next CL will add actual translation to
src/trace_processor/importers/proto/track_event_parser.cc.
Bug: 225826610
Change-Id: I36f66a737895e1f30b1f70a82b7978b36ad4a4e2
diff --git a/Android.bp b/Android.bp
index 391cbec..4b53cdf 100644
--- a/Android.bp
+++ b/Android.bp
@@ -8145,6 +8145,7 @@
name: "perfetto_src_trace_processor_importers_common_common",
srcs: [
"src/trace_processor/importers/common/args_tracker.cc",
+ "src/trace_processor/importers/common/args_translation_table.cc",
"src/trace_processor/importers/common/clock_tracker.cc",
"src/trace_processor/importers/common/event_tracker.cc",
"src/trace_processor/importers/common/flow_tracker.cc",
@@ -8160,6 +8161,7 @@
filegroup {
name: "perfetto_src_trace_processor_importers_common_unittests",
srcs: [
+ "src/trace_processor/importers/common/args_translation_table_unittest.cc",
"src/trace_processor/importers/common/clock_tracker_unittest.cc",
"src/trace_processor/importers/common/event_tracker_unittest.cc",
"src/trace_processor/importers/common/flow_tracker_unittest.cc",
@@ -8541,6 +8543,7 @@
"src/trace_processor/importers/proto/track_event_parser.cc",
"src/trace_processor/importers/proto/track_event_tokenizer.cc",
"src/trace_processor/importers/proto/track_event_tracker.cc",
+ "src/trace_processor/importers/proto/translation_table_module.cc",
"src/trace_processor/trace_blob.cc",
"src/trace_processor/trace_processor_context.cc",
"src/trace_processor/trace_processor_storage.cc",