class Symbolizer
Defined at line 17 of file ../../tools/symbolizer/symbolizer.h
This is the core logic of the symbolizer. The implementation is separated from the interface here
for better testing.
Public Methods
void Reset (bool symbolizing_dart, ResetType type)
{{{reset}}}, {{{reset:begin}}}, {{{reset:end}}}
Resets the internal state and starts processing the stack trace for a new process.
symbolizing_dart indicates whether the next stack stace is from Dart. The behavior could be
slightly different for Dart and other stack traces.
void Module (uint64_tid,std::string_viewname,std::string_viewbuild_id)
{{{module:%i:%s:%s:...}}}
Adds a module to the current process, indexed by id.
void MMap (uint64_taddress,uint64_tsize,uint64_tmodule_id,std::string_viewflags,uint64_tmodule_offset,StringOutputFnoutput)
{{{mmap:%p:%x:...}}}
Associates a memory region with the module indexed by its id.
void Backtrace (uint64_tframe_id,uint64_taddress,AddressTypetype,std::string_viewmessage,StringOutputFnoutput)
{{{bt:%u:%p}}}, {{{bt:%u:%p:ra}}}, {{{bt:%u:%p:pc}}}
Represents one frame in the backtrace. We'll output the symbolized content for each frame.
void DumpFile (std::string_view type, std::string_view name)
{{{dumpfile:%s:%s}}}
Dumps the current modules and mmaps to a json file.
void ~Symbolizer ()
Defined at line 29 of file ../../tools/symbolizer/symbolizer.h
Enumerations
enum class AddressType
| Name | Value | Comments |
|---|---|---|
| kUnknown | 0 | -- |
| kReturnAddress | 1 |
:ra suffix |
| kProgramCounter | 2 |
:pc suffix |
Defined at line 19 of file ../../tools/symbolizer/symbolizer.h
enum class ResetType
| Name | Value | Comments |
|---|---|---|
| kUnknown | 0 | -- |
| kBegin | 1 |
:begin suffix |
| kEnd | 2 |
:end suffix |
Defined at line 24 of file ../../tools/symbolizer/symbolizer.h