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 |
virtual void | Emit (llvm::StringRef message)=0 |
virtual bool | isA (const void *ClassID) const |
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 |
|
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().
Referenced by lldb_private::Diagnostics::DumpDiangosticsLog().
|
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().
Referenced by lldb_private::Diagnostics::Report().
|
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 |
|
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(), and NormalizeIndex().
|
private |
Definition at line 111 of file Log.h.
Referenced by Emit(), GetFirstMessageIndex(), and GetNumMessages().