LLDB mainline
|
Helper RAII class for collecting telemetry. More...
#include <Telemetry.h>
Public Member Functions | |
ScopedDispatcher (Debugger *debugger=nullptr) | |
ScopedDispatcher (llvm::unique_function< void(Info *info)> final_callback, Debugger *debugger=nullptr) | |
void | SetDebugger (Debugger *debugger) |
void | DispatchOnExit (llvm::unique_function< void(Info *info)> final_callback) |
void | DispatchNow (llvm::unique_function< void(Info *info)> populate_fields_cb) |
~ScopedDispatcher () |
Private Attributes | |
SteadyTimePoint | m_start_time |
llvm::unique_function< void(Info *info)> | m_final_callback |
Debugger * | debugger |
Helper RAII class for collecting telemetry.
Definition at line 269 of file Telemetry.h.
|
inline |
Definition at line 272 of file Telemetry.h.
References debugger, and m_start_time.
|
inline |
Definition at line 277 of file Telemetry.h.
References debugger, m_final_callback, and m_start_time.
|
inline |
Definition at line 312 of file Telemetry.h.
References DispatchNow(), and m_final_callback.
|
inline |
Definition at line 293 of file Telemetry.h.
References debugger, lldb_private::telemetry::TelemetryManager::GetConfig(), lldb_private::telemetry::TelemetryManager::GetInstance(), lldb_private::GetLog(), LLDB_LOG_ERROR, m_start_time, and lldb_private::Object.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), lldb_private::Target::SetExecutableModule(), lldb_private::Process::SetExitStatus(), and ~ScopedDispatcher().
|
inline |
Definition at line 287 of file Telemetry.h.
References m_final_callback.
Referenced by lldb_private::CommandInterpreter::HandleCommand(), lldb_private::Target::SetExecutableModule(), and lldb_private::Process::SetExitStatus().
|
inline |
Definition at line 285 of file Telemetry.h.
References debugger.
Referenced by lldb_private::Process::SetExitStatus().
|
private |
Definition at line 320 of file Telemetry.h.
Referenced by DispatchNow(), ScopedDispatcher(), ScopedDispatcher(), and SetDebugger().
|
private |
Definition at line 319 of file Telemetry.h.
Referenced by DispatchOnExit(), ScopedDispatcher(), and ~ScopedDispatcher().
|
private |
Definition at line 318 of file Telemetry.h.
Referenced by DispatchNow(), ScopedDispatcher(), and ScopedDispatcher().