proxygen
|
#include <Symbolizer.h>
Public Member Functions | |
FDSymbolizePrinter (int fd, int options=0, size_t bufferSize=0) | |
~FDSymbolizePrinter () override | |
virtual void | flush () override |
Public Member Functions inherited from folly::symbolizer::SymbolizePrinter | |
void | print (uintptr_t address, const SymbolizedFrame &frame) |
void | println (uintptr_t address, const SymbolizedFrame &frame) |
void | println (const uintptr_t *addresses, const SymbolizedFrame *frames, size_t frameCount) |
void | print (StringPiece sp) |
template<size_t N> | |
void | println (const FrameArray< N > &fa, size_t skip=0) |
virtual | ~SymbolizePrinter () |
void | color (Color c) |
Private Member Functions | |
void | doPrint (StringPiece sp) override |
Private Attributes | |
const int | fd_ |
std::unique_ptr< IOBuf > | buffer_ |
Additional Inherited Members | |
Public Types inherited from folly::symbolizer::SymbolizePrinter | |
enum | Options { NO_FILE_AND_LINE = 1 << 0, TERSE = 1 << 1, COLOR = 1 << 2, COLOR_IF_TTY = 1 << 3, NO_FRAME_ADDRESS = 1 << 4 } |
enum | Color { DEFAULT, RED, GREEN, YELLOW, BLUE, CYAN, WHITE, PURPLE, NUM } |
Protected Member Functions inherited from folly::symbolizer::SymbolizePrinter | |
SymbolizePrinter (int options, bool isTty=false) | |
Protected Attributes inherited from folly::symbolizer::SymbolizePrinter | |
const int | options_ |
const bool | isTty_ |
Print a list of symbolized addresses to a file descriptor. Ignores errors. Async-signal-safe.
Definition at line 287 of file Symbolizer.h.
|
explicit |
Definition at line 367 of file Symbolizer.cpp.
|
override |
Definition at line 372 of file Symbolizer.cpp.
References flush().
|
overrideprivatevirtual |
Implements folly::symbolizer::SymbolizePrinter.
Definition at line 376 of file Symbolizer.cpp.
References buffer_, folly::Range< Iter >::data(), fd_, flush(), folly::Range< Iter >::size(), and folly::writeFull().
|
overridevirtual |
If output buffered inside this class, send it to the output stream, so that any output done in other ways appears after this.
Reimplemented from folly::symbolizer::SymbolizePrinter.
Definition at line 390 of file Symbolizer.cpp.
References buffer_, fd_, and folly::writeFull().
Referenced by doPrint(), folly::symbolizer::SafeStackTracePrinter::flush(), and ~FDSymbolizePrinter().
|
private |
Definition at line 297 of file Symbolizer.h.
|
private |
Definition at line 296 of file Symbolizer.h.