tp: add metatracing
This CL adds metatracing support to trace processor using the existing
metatracing API in base. This includes plumbing to shell with the -m
flag allowing metatracing of shell.
We use a new implementation of metatracing as the one in base does not
have quite the right shape for use in trace processor (e.g. the use of
task runners, the lack of args support etc)
Change-Id: Ib052d8d2d623f18e95c8614448975617d914dcca
diff --git a/Android.bp b/Android.bp
index 2ecc836..3c44b7b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -6571,6 +6571,14 @@
],
}
+// GN: //src/trace_processor:metatrace
+filegroup {
+ name: "perfetto_src_trace_processor_metatrace",
+ srcs: [
+ "src/trace_processor/tp_metatrace.cc",
+ ],
+}
+
// GN: //src/trace_processor/metrics:lib
filegroup {
name: "perfetto_src_trace_processor_metrics_lib",
@@ -7668,6 +7676,7 @@
":perfetto_src_trace_processor_importers_common",
":perfetto_src_trace_processor_importers_unittests",
":perfetto_src_trace_processor_lib",
+ ":perfetto_src_trace_processor_metatrace",
":perfetto_src_trace_processor_metrics_lib",
":perfetto_src_trace_processor_metrics_unittests",
":perfetto_src_trace_processor_sqlite_sqlite",
@@ -7922,6 +7931,7 @@
":perfetto_src_trace_processor_ftrace_descriptors",
":perfetto_src_trace_processor_importers_common",
":perfetto_src_trace_processor_lib",
+ ":perfetto_src_trace_processor_metatrace",
":perfetto_src_trace_processor_metrics_lib",
":perfetto_src_trace_processor_sqlite_sqlite",
":perfetto_src_trace_processor_storage_full",
@@ -8039,6 +8049,7 @@
":perfetto_src_trace_processor_ftrace_descriptors",
":perfetto_src_trace_processor_importers_common",
":perfetto_src_trace_processor_lib",
+ ":perfetto_src_trace_processor_metatrace",
":perfetto_src_trace_processor_metrics_lib",
":perfetto_src_trace_processor_sqlite_sqlite",
":perfetto_src_trace_processor_storage_full",