LLDB mainline
|
A class that represents statistics for a since lldb_private::Target. More...
#include <Statistics.h>
Public Member Functions | |
llvm::json::Value | ToJSON (Target &target, const lldb_private::StatisticsOptions &options) |
void | SetLaunchOrAttachTime () |
void | SetFirstPrivateStopTime () |
void | SetFirstPublicStopTime () |
void | IncreaseSourceMapDeduceCount () |
void | IncreaseSourceRealpathAttemptCount (uint32_t count) |
void | IncreaseSourceRealpathCompatibleCount (uint32_t count) |
StatsDuration & | GetCreateTime () |
StatsSuccessFail & | GetExpressionStats () |
StatsSuccessFail & | GetFrameVariableStats () |
Protected Member Functions | |
void | CollectStats (Target &target) |
Protected Attributes | |
StatsDuration | m_create_time |
std::optional< StatsTimepoint > | m_launch_or_attach_time |
std::optional< StatsTimepoint > | m_first_private_stop_time |
std::optional< StatsTimepoint > | m_first_public_stop_time |
StatsSuccessFail | m_expr_eval {"expressionEvaluation"} |
StatsSuccessFail | m_frame_var {"frameVariable"} |
std::vector< intptr_t > | m_module_identifiers |
uint32_t | m_source_map_deduce_count = 0 |
uint32_t | m_source_realpath_attempt_count = 0 |
uint32_t | m_source_realpath_compatible_count = 0 |
A class that represents statistics for a since lldb_private::Target.
Definition at line 179 of file Statistics.h.
|
protected |
Definition at line 45 of file Statistics.cpp.
References lldb_private::Target::GetImages(), m_module_identifiers, and lldb_private::ModuleList::Modules().
Referenced by ToJSON().
|
inline |
Definition at line 191 of file Statistics.h.
References m_create_time.
Referenced by lldb_private::Target::SetExecutableModule().
|
inline |
Definition at line 192 of file Statistics.h.
References m_expr_eval.
Referenced by lldb_private::Target::EvaluateExpression().
|
inline |
Definition at line 193 of file Statistics.h.
References m_frame_var.
Referenced by CommandObjectFrameVariable::DoExecute().
void TargetStats::IncreaseSourceMapDeduceCount | ( | ) |
Definition at line 223 of file Statistics.cpp.
References m_source_map_deduce_count.
Referenced by lldb_private::BreakpointResolverFileLine::DeduceSourceMapping().
void TargetStats::IncreaseSourceRealpathAttemptCount | ( | uint32_t | count | ) |
Definition at line 227 of file Statistics.cpp.
References m_source_realpath_attempt_count.
Referenced by lldb_private::BreakpointResolverFileLine::SearchCallback().
void TargetStats::IncreaseSourceRealpathCompatibleCount | ( | uint32_t | count | ) |
Definition at line 231 of file Statistics.cpp.
References m_source_realpath_compatible_count.
Referenced by lldb_private::BreakpointResolverFileLine::SearchCallback().
void TargetStats::SetFirstPrivateStopTime | ( | ) |
Definition at line 207 of file Statistics.cpp.
References m_first_private_stop_time.
Referenced by lldb_private::Process::SetPrivateState().
void TargetStats::SetFirstPublicStopTime | ( | ) |
Definition at line 215 of file Statistics.cpp.
References m_first_public_stop_time.
Referenced by lldb_private::Process::SetPublicState().
void TargetStats::SetLaunchOrAttachTime | ( | ) |
Definition at line 202 of file Statistics.cpp.
References m_first_private_stop_time, and m_launch_or_attach_time.
Referenced by lldb_private::Target::Attach(), and lldb_private::Target::Launch().
json::Value TargetStats::ToJSON | ( | Target & | target, |
const lldb_private::StatisticsOptions & | options | ||
) |
Definition at line 106 of file Statistics.cpp.
References CollectStats(), elapsed(), lldb_private::StatsDuration::get(), lldb_private::BreakpointList::GetBreakpointAtIndex(), lldb_private::Breakpoint::GetBreakpointKind(), lldb_private::Target::GetBreakpointList(), lldb_private::Breakpoint::GetHitCount(), lldb_private::StatisticsOptions::GetIncludeModules(), lldb_private::BreakpointList::GetListMutex(), lldb_private::Target::GetProcessSP(), lldb_private::Breakpoint::GetResolveTime(), lldb_private::BreakpointList::GetSize(), lldb_private::Breakpoint::GetStatistics(), lldb_private::StatisticsOptions::GetSummaryOnly(), m_create_time, m_expr_eval, m_first_private_stop_time, m_first_public_stop_time, m_frame_var, m_launch_or_attach_time, m_module_identifiers, m_source_map_deduce_count, m_source_realpath_attempt_count, m_source_realpath_compatible_count, lldb_private::StatsSuccessFail::name, and lldb_private::StatsSuccessFail::ToJSON().
Referenced by lldb_private::Target::ReportStatistics().
|
protected |
Definition at line 196 of file Statistics.h.
Referenced by GetCreateTime(), and ToJSON().
|
protected |
Definition at line 200 of file Statistics.h.
Referenced by GetExpressionStats(), and ToJSON().
|
protected |
Definition at line 198 of file Statistics.h.
Referenced by SetFirstPrivateStopTime(), SetLaunchOrAttachTime(), and ToJSON().
|
protected |
Definition at line 199 of file Statistics.h.
Referenced by SetFirstPublicStopTime(), and ToJSON().
|
protected |
Definition at line 201 of file Statistics.h.
Referenced by GetFrameVariableStats(), and ToJSON().
|
protected |
Definition at line 197 of file Statistics.h.
Referenced by SetLaunchOrAttachTime(), and ToJSON().
|
protected |
Definition at line 202 of file Statistics.h.
Referenced by CollectStats(), and ToJSON().
|
protected |
Definition at line 203 of file Statistics.h.
Referenced by IncreaseSourceMapDeduceCount(), and ToJSON().
|
protected |
Definition at line 204 of file Statistics.h.
Referenced by IncreaseSourceRealpathAttemptCount(), and ToJSON().
|
protected |
Definition at line 205 of file Statistics.h.
Referenced by IncreaseSourceRealpathCompatibleCount(), and ToJSON().