Move symbolizer to src/profiling/symbolizer.
This is in preparation of adding symbolization to trace_processor_shell.
Bug: 146479871
Change-Id: I4ff863f78ef676cd583b32ad1b913cc9029337ce
diff --git a/BUILD b/BUILD
index 8e07f3d..ae16edc 100644
--- a/BUILD
+++ b/BUILD
@@ -332,12 +332,11 @@
],
)
-# GN target: //include/perfetto/profiling:symbolizer
+# GN target: //include/perfetto/profiling:pprof_builder
filegroup(
- name = "include_perfetto_profiling_symbolizer",
+ name = "include_perfetto_profiling_pprof_builder",
srcs = [
"include/perfetto/profiling/pprof_builder.h",
- "include/perfetto/profiling/symbolizer.h",
],
)
@@ -547,6 +546,26 @@
],
)
+# GN target: //src/profiling/symbolizer:symbolize_database
+filegroup(
+ name = "src_profiling_symbolizer_symbolize_database",
+ srcs = [
+ "src/profiling/symbolizer/symbolize_database.cc",
+ "src/profiling/symbolizer/symbolize_database.h",
+ ],
+)
+
+# GN target: //src/profiling/symbolizer:symbolizer
+filegroup(
+ name = "src_profiling_symbolizer_symbolizer",
+ srcs = [
+ "src/profiling/symbolizer/local_symbolizer.cc",
+ "src/profiling/symbolizer/local_symbolizer.h",
+ "src/profiling/symbolizer/symbolizer.cc",
+ "src/profiling/symbolizer/symbolizer.h",
+ ],
+)
+
# GN target: //src/profiling:deobfuscator
filegroup(
name = "src_profiling_deobfuscator",
@@ -1177,15 +1196,6 @@
],
)
-# GN target: //tools/trace_to_text:local_symbolizer
-filegroup(
- name = "tools_trace_to_text_local_symbolizer",
- srcs = [
- "tools/trace_to_text/local_symbolizer.cc",
- "tools/trace_to_text/local_symbolizer.h",
- ],
-)
-
# GN target: //tools/trace_to_text:pprofbuilder
filegroup(
name = "tools_trace_to_text_pprofbuilder",
@@ -1194,14 +1204,6 @@
],
)
-# GN target: //tools/trace_to_text:symbolizer
-filegroup(
- name = "tools_trace_to_text_symbolizer",
- srcs = [
- "tools/trace_to_text/symbolizer.cc",
- ],
-)
-
# GN target: //tools/trace_to_text:utils
filegroup(
name = "tools_trace_to_text_utils",
@@ -2686,15 +2688,16 @@
name = "libpprofbuilder",
srcs = [
":src_profiling_deobfuscator",
+ ":src_profiling_symbolizer_symbolize_database",
+ ":src_profiling_symbolizer_symbolizer",
":tools_trace_to_text_pprofbuilder",
- ":tools_trace_to_text_symbolizer",
":tools_trace_to_text_utils",
],
hdrs = [
":include_perfetto_base_base",
":include_perfetto_ext_base_base",
":include_perfetto_profiling_deobfuscator",
- ":include_perfetto_profiling_symbolizer",
+ ":include_perfetto_profiling_pprof_builder",
":include_perfetto_protozero_protozero",
":include_perfetto_trace_processor_basic_types",
":include_perfetto_trace_processor_storage",
@@ -2741,13 +2744,15 @@
":include_perfetto_ext_trace_processor_export_json",
":include_perfetto_ext_traced_sys_stats_counters",
":include_perfetto_profiling_deobfuscator",
- ":include_perfetto_profiling_symbolizer",
+ ":include_perfetto_profiling_pprof_builder",
":include_perfetto_protozero_protozero",
":include_perfetto_trace_processor_basic_types",
":include_perfetto_trace_processor_storage",
":include_perfetto_trace_processor_trace_processor",
":src_base_base",
":src_profiling_deobfuscator",
+ ":src_profiling_symbolizer_symbolize_database",
+ ":src_profiling_symbolizer_symbolizer",
":src_protozero_protozero",
":src_trace_processor_containers_containers",
":src_trace_processor_db_lib",
@@ -2761,9 +2766,7 @@
":src_trace_processor_tables_tables",
":tools_trace_to_text_common",
":tools_trace_to_text_full",
- ":tools_trace_to_text_local_symbolizer",
":tools_trace_to_text_pprofbuilder",
- ":tools_trace_to_text_symbolizer",
":tools_trace_to_text_utils",
],
visibility = [