LLDB mainline
|
Public Member Functions | |
lldb::thread_result_t | MonitorThread () |
void | Start () override |
void | Stop () override |
MemoryMonitor (Callback callback) | |
MemoryMonitor (const MemoryMonitor &)=delete | |
MemoryMonitor is not copyable. | |
Public Member Functions inherited from lldb_private::MemoryMonitor | |
MemoryMonitor (Callback callback) | |
virtual | ~MemoryMonitor ()=default |
MemoryMonitor (const MemoryMonitor &)=delete | |
MemoryMonitor is not copyable. | |
MemoryMonitor & | operator= (const MemoryMonitor &)=delete |
Private Attributes | |
std::atomic< bool > | m_done = false |
HostThread | m_memory_monitor_thread |
Static Private Attributes | |
static constexpr uint32_t | g_timeout = 1000 |
Additional Inherited Members | |
Public Types inherited from lldb_private::MemoryMonitor | |
using | Callback = std::function<void()> |
Static Public Member Functions inherited from lldb_private::MemoryMonitor | |
static std::unique_ptr< MemoryMonitor > | Create (Callback callback) |
Protected Attributes inherited from lldb_private::MemoryMonitor | |
Callback | m_callback |
Definition at line 33 of file MemoryMonitor.cpp.
|
inline |
Definition at line 21 of file MemoryMonitor.h.
|
delete |
MemoryMonitor is not copyable.
|
inline |
Definition at line 37 of file MemoryMonitor.cpp.
References g_timeout, lldb_private::MemoryMonitor::m_callback, m_done, and O_NONBLOCK.
Referenced by Start().
|
inlineoverridevirtual |
Implements lldb_private::MemoryMonitor.
Definition at line 80 of file MemoryMonitor.cpp.
References lldb_private::GetLog(), lldb_private::Host, lldb_private::ThreadLauncher::LaunchThread(), LLDB_LOG_ERROR, m_memory_monitor_thread, and MonitorThread().
|
inlineoverridevirtual |
Implements lldb_private::MemoryMonitor.
Definition at line 92 of file MemoryMonitor.cpp.
References m_done, and m_memory_monitor_thread.
|
staticconstexprprivate |
Definition at line 100 of file MemoryMonitor.cpp.
Referenced by MonitorThread().
|
private |
Definition at line 101 of file MemoryMonitor.cpp.
Referenced by MonitorThread(), and Stop().
|
private |
Definition at line 102 of file MemoryMonitor.cpp.