processor: extract a public ReadTrace() function from shell
Clients are asking for this :)
Bug: 142310140
Change-Id: Id035f857d779b4a5d2b854079d2fdb3f650073a9
diff --git a/BUILD b/BUILD
index e560b11..56233f3 100644
--- a/BUILD
+++ b/BUILD
@@ -339,6 +339,7 @@
name = "include_perfetto_trace_processor_trace_processor",
srcs = [
"include/perfetto/trace_processor/basic_types.h",
+ "include/perfetto/trace_processor/read_trace.h",
"include/perfetto/trace_processor/status.h",
"include/perfetto/trace_processor/trace_processor.h",
],
@@ -660,6 +661,7 @@
"src/trace_processor/proto_trace_tokenizer.h",
"src/trace_processor/raw_table.cc",
"src/trace_processor/raw_table.h",
+ "src/trace_processor/read_trace.cc",
"src/trace_processor/row_iterators.cc",
"src/trace_processor/row_iterators.h",
"src/trace_processor/sched_slice_table.cc",