proxygen
|
#include <Symbolizer.h>
Public Member Functions | |
Symbolizer (Dwarf::LocationInfoMode mode=kDefaultLocationInfoMode) | |
Symbolizer (ElfCacheBase *cache, Dwarf::LocationInfoMode mode=kDefaultLocationInfoMode, size_t symbolCacheSize=0) | |
void | symbolize (const uintptr_t *addresses, SymbolizedFrame *frames, size_t frameCount) |
template<size_t N> | |
void | symbolize (FrameArray< N > &fa) |
bool | symbolize (uintptr_t address, SymbolizedFrame &frame) |
Static Public Attributes | |
static constexpr Dwarf::LocationInfoMode | kDefaultLocationInfoMode |
Private Types | |
using | SymbolCache = EvictingCacheMap< uintptr_t, SymbolizedFrame > |
Private Attributes | |
ElfCacheBase *const | cache_ |
const Dwarf::LocationInfoMode | mode_ |
folly::Optional< Synchronized< SymbolCache > > | symbolCache_ |
Definition at line 118 of file Symbolizer.h.
|
private |
Definition at line 155 of file Symbolizer.h.
|
inlineexplicit |
Definition at line 123 of file Symbolizer.h.
References mode.
|
explicit |
Definition at line 84 of file Symbolizer.cpp.
References folly::in_place(), and symbolCache_.
void folly::symbolizer::Symbolizer::symbolize | ( | const uintptr_t * | addresses, |
SymbolizedFrame * | frames, | ||
size_t | frameCount | ||
) |
Symbolize given addresses.
Definition at line 94 of file Symbolizer.cpp.
References _r_debug, addr, folly::symbolizer::AddressFormatter::bufTemplate, cache_, folly::symbolizer::SymbolizedFrame::clear(), folly::symbolizer::ElfCacheBase::getFile(), i, folly::symbolizer::SymbolizePrinter::kColorMap, mode_, and symbolCache_.
Referenced by folly::symbolizer::FastStackTracePrinter::printStackTrace(), folly::symbolizer::SafeStackTracePrinter::printSymbolizedStackTrace(), folly::symbolizer::test::runElfCacheTest(), folly::SingletonVault::scheduleDestroyInstances(), folly::symbolizer::test::ElfCacheTest::SetUp(), folly::symbolizer::test::TEST(), and verifyStackTraces().
|
inline |
Definition at line 139 of file Symbolizer.h.
References folly::symbolizer::FrameArray< N >::addresses, folly::symbolizer::FrameArray< N >::frameCount, and folly::symbolizer::FrameArray< N >::frames.
|
inline |
Shortcut to symbolize one address.
Definition at line 146 of file Symbolizer.h.
References folly::symbolizer::SymbolizedFrame::found.
|
private |
Definition at line 152 of file Symbolizer.h.
Referenced by symbolize().
|
static |
Definition at line 120 of file Symbolizer.h.
|
private |
Definition at line 153 of file Symbolizer.h.
Referenced by symbolize().
|
private |
Definition at line 156 of file Symbolizer.h.
Referenced by symbolize(), and Symbolizer().