Add BreakpadParser for symbolization of traces.
Perfetto's trace_to_text tool supports adding symbols to Android
traces by using llvm_symbolizer to extract symbols from the binary
files. Support for windows was also recently added, but breakpad support is needed for official chrome builds.
The BreakpadParser class was created to be able to obtain symbols to
symbolize traces from multiple platforms. The class has a ParseFile
method that parses a breakpad file and saves function names and their
corresponding start addresses to the Symbol struct. Symbol objects are
saved in a vector to be used in symbolization.
Bug: b/191080142
Change-Id: I46b5760d7746868e7523c0185d853029862ede24
diff --git a/BUILD b/BUILD
index db42ce5..7865419 100644
--- a/BUILD
+++ b/BUILD
@@ -751,6 +751,8 @@
filegroup(
name = "src_profiling_symbolizer_symbolizer",
srcs = [
+ "src/profiling/symbolizer/breakpad_parser.cc",
+ "src/profiling/symbolizer/breakpad_parser.h",
"src/profiling/symbolizer/filesystem.h",
"src/profiling/symbolizer/filesystem_posix.cc",
"src/profiling/symbolizer/filesystem_windows.cc",