metrics: Implement getting prototext formatted metric result
Uses protozero_to_text to convert the metric proto result into
prototext, which will be used by the UI in a later CL.
Bug:161699653
Change-Id: I5cb9e3021855e6a71f756db3a3a77b6ff73346c5
diff --git a/BUILD b/BUILD
index 9839996..9c2ebac 100644
--- a/BUILD
+++ b/BUILD
@@ -940,6 +940,15 @@
],
)
+# GN target: //src/trace_processor/util:protozero_to_text
+filegroup(
+ name = "src_trace_processor_util_protozero_to_text",
+ srcs = [
+ "src/trace_processor/util/protozero_to_text.cc",
+ "src/trace_processor/util/protozero_to_text.h",
+ ],
+)
+
# GN target: //src/trace_processor/util:util
filegroup(
name = "src_trace_processor_util_util",
@@ -2992,6 +3001,7 @@
":src_trace_processor_track_event_descriptor",
":src_trace_processor_types_types",
":src_trace_processor_util_descriptors",
+ ":src_trace_processor_util_protozero_to_text",
":src_trace_processor_util_util",
],
hdrs = [
@@ -3086,6 +3096,7 @@
":src_trace_processor_track_event_descriptor",
":src_trace_processor_types_types",
":src_trace_processor_util_descriptors",
+ ":src_trace_processor_util_protozero_to_text",
":src_trace_processor_util_util",
],
visibility = [
@@ -3253,6 +3264,7 @@
":src_trace_processor_track_event_descriptor",
":src_trace_processor_types_types",
":src_trace_processor_util_descriptors",
+ ":src_trace_processor_util_protozero_to_text",
":src_trace_processor_util_util",
":tools_trace_to_text_common",
":tools_trace_to_text_full",