tp: implement describe_event dynamic table
This allows authors to add descriptions to slices matching a given name.
In the follow-up CLs, this will be expanded to include looking at parent
slices as well.
Context: go/perfetto-analysis-design
Bug: 148923470
Change-Id: I653fea15b18d5e0467e60f791177845c51494cbd
diff --git a/BUILD b/BUILD
index af9abd3..922f2f0 100644
--- a/BUILD
+++ b/BUILD
@@ -671,6 +671,15 @@
],
)
+# GN target: //src/trace_processor/analysis:analysis
+filegroup(
+ name = "src_trace_processor_analysis_analysis",
+ srcs = [
+ "src/trace_processor/analysis/describe_slice.cc",
+ "src/trace_processor/analysis/describe_slice.h",
+ ],
+)
+
# GN target: //src/trace_processor/containers:containers
filegroup(
name = "src_trace_processor_containers_containers",
@@ -856,6 +865,8 @@
filegroup(
name = "src_trace_processor_lib",
srcs = [
+ "src/trace_processor/describe_slice_generator.cc",
+ "src/trace_processor/describe_slice_generator.h",
"src/trace_processor/experimental_counter_dur_generator.cc",
"src/trace_processor/experimental_counter_dur_generator.h",
"src/trace_processor/experimental_flamegraph_generator.cc",
@@ -2782,6 +2793,7 @@
srcs = [
":src_base_base",
":src_protozero_protozero",
+ ":src_trace_processor_analysis_analysis",
":src_trace_processor_containers_containers",
":src_trace_processor_db_lib",
":src_trace_processor_descriptors",
@@ -2868,6 +2880,7 @@
":src_profiling_symbolizer_symbolize_database",
":src_profiling_symbolizer_symbolizer",
":src_protozero_protozero",
+ ":src_trace_processor_analysis_analysis",
":src_trace_processor_containers_containers",
":src_trace_processor_db_lib",
":src_trace_processor_descriptors",
@@ -3032,6 +3045,7 @@
":src_profiling_symbolizer_symbolize_database",
":src_profiling_symbolizer_symbolizer",
":src_protozero_protozero",
+ ":src_trace_processor_analysis_analysis",
":src_trace_processor_containers_containers",
":src_trace_processor_db_lib",
":src_trace_processor_descriptors",