LLDB mainline
|
#include <Log.h>
Public Member Functions | |
RotatingLogHandler (size_t size) | |
void | Emit (llvm::StringRef message) override |
void | Dump (llvm::raw_ostream &stream) const |
bool | isA (const void *ClassID) const override |
Public Member Functions inherited from lldb_private::LogHandler | |
virtual | ~LogHandler ()=default |
Static Public Member Functions | |
static bool | classof (const LogHandler *obj) |
Static Public Member Functions inherited from lldb_private::LogHandler | |
static bool | classof (const LogHandler *obj) |
Private Member Functions | |
size_t | NormalizeIndex (size_t i) const |
size_t | GetNumMessages () const |
size_t | GetFirstMessageIndex () const |
Private Attributes | |
std::mutex | m_mutex |
std::unique_ptr< std::string[]> | m_messages |
const size_t | m_size = 0 |
size_t | m_next_index = 0 |
size_t | m_total_count = 0 |
Static Private Attributes | |
static char | ID |
RotatingLogHandler::RotatingLogHandler | ( | size_t | size | ) |
Definition at line 423 of file Log.cpp.
References m_messages, and m_size.
|
inlinestatic |
Definition at line 100 of file Log.h.
References ID, and lldb_private::LogHandler::isA().
void RotatingLogHandler::Dump | ( | llvm::raw_ostream & | stream | ) | const |
Definition at line 444 of file Log.cpp.
References GetFirstMessageIndex(), GetNumMessages(), m_messages, m_mutex, and NormalizeIndex().
|
overridevirtual |
Implements lldb_private::LogHandler.
Definition at line 426 of file Log.cpp.
References m_messages, m_mutex, m_next_index, m_total_count, and NormalizeIndex().
|
private |
Definition at line 440 of file Log.cpp.
References m_next_index, m_size, and m_total_count.
Referenced by Dump().
|
private |
|
inlineoverridevirtual |
|
private |
|
staticprivate |
|
private |
Definition at line 108 of file Log.h.
Referenced by Dump(), Emit(), and RotatingLogHandler().
|
mutableprivate |
|
private |
Definition at line 110 of file Log.h.
Referenced by Emit(), and GetFirstMessageIndex().
|
private |
Definition at line 109 of file Log.h.
Referenced by GetFirstMessageIndex(), GetNumMessages(), NormalizeIndex(), and RotatingLogHandler().
|
private |
Definition at line 111 of file Log.h.
Referenced by Emit(), GetFirstMessageIndex(), and GetNumMessages().