proxygen
folly::symbolizer::OStreamSymbolizePrinter Class Reference

#include <Symbolizer.h>

Inheritance diagram for folly::symbolizer::OStreamSymbolizePrinter:
folly::symbolizer::SymbolizePrinter

Public Member Functions

 OStreamSymbolizePrinter (std::ostream &out, int options=0)
 
- 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 void flush ()
 
virtual ~SymbolizePrinter ()
 
void color (Color c)
 

Private Member Functions

void doPrint (StringPiece sp) override
 

Private Attributes

std::ostream & out_
 

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_
 

Detailed Description

Print a list of symbolized addresses to a stream. Not reentrant. Do not use from signal handling code.

Definition at line 274 of file Symbolizer.h.

Constructor & Destructor Documentation

folly::symbolizer::OStreamSymbolizePrinter::OStreamSymbolizePrinter ( std::ostream &  out,
int  options = 0 
)
explicit

Definition at line 359 of file Symbolizer.cpp.

360  : SymbolizePrinter(options, isColorfulTty(options, getFD(out))),
361  out_(out) {}
SymbolizePrinter(int options, bool isTty=false)
Definition: Symbolizer.h:248

Member Function Documentation

void folly::symbolizer::OStreamSymbolizePrinter::doPrint ( StringPiece  sp)
overrideprivatevirtual

Implements folly::symbolizer::SymbolizePrinter.

Definition at line 363 of file Symbolizer.cpp.

References out_.

363  {
364  out_ << sp;
365 }

Member Data Documentation

std::ostream& folly::symbolizer::OStreamSymbolizePrinter::out_
private

Definition at line 280 of file Symbolizer.h.

Referenced by doPrint().


The documentation for this class was generated from the following files: