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 () |
void | Reset (Target &target) |
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 265 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 277 of file Statistics.h.
References m_create_time.
Referenced by lldb_private::Target::SetExecutableModule().
|
inline |
Definition at line 278 of file Statistics.h.
References m_expr_eval.
Referenced by lldb_private::Target::EvaluateExpression().
|
inline |
Definition at line 279 of file Statistics.h.
References m_frame_var.
Referenced by CommandObjectFrameVariable::DoExecute().
void TargetStats::IncreaseSourceMapDeduceCount | ( | ) |
Definition at line 243 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 247 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 251 of file Statistics.cpp.
References m_source_realpath_compatible_count.
Referenced by lldb_private::BreakpointResolverFileLine::SearchCallback().
void TargetStats::Reset | ( | Target & | target | ) |
Definition at line 204 of file Statistics.cpp.
References lldb_private::BreakpointList::GetBreakpointAtIndex(), lldb_private::Target::GetBreakpointList(), lldb_private::BreakpointList::GetListMutex(), lldb_private::BreakpointList::GetSize(), lldb_private::Target::GetSummaryStatisticsCache(), m_first_private_stop_time, m_first_public_stop_time, m_launch_or_attach_time, lldb_private::SummaryStatisticsCache::Reset(), and lldb_private::Breakpoint::ResetStatistics().
Referenced by lldb_private::Target::ResetStatistics().
void TargetStats::SetFirstPrivateStopTime | ( | ) |
Definition at line 227 of file Statistics.cpp.
References m_first_private_stop_time.
Referenced by lldb_private::Process::SetPrivateState().
void TargetStats::SetFirstPublicStopTime | ( | ) |
Definition at line 235 of file Statistics.cpp.
References m_first_public_stop_time.
Referenced by lldb_private::Process::SetPublicState().
void TargetStats::SetLaunchOrAttachTime | ( | ) |
Definition at line 222 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(), lldb_private::Target::GetSummaryStatisticsCache(), 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, lldb_private::SummaryStatisticsCache::ToJSON(), and lldb_private::StatsSuccessFail::ToJSON().
Referenced by lldb_private::Target::ReportStatistics().
|
protected |
Definition at line 283 of file Statistics.h.
Referenced by GetCreateTime(), and ToJSON().
|
protected |
Definition at line 287 of file Statistics.h.
Referenced by GetExpressionStats(), and ToJSON().
|
protected |
Definition at line 285 of file Statistics.h.
Referenced by Reset(), SetFirstPrivateStopTime(), SetLaunchOrAttachTime(), and ToJSON().
|
protected |
Definition at line 286 of file Statistics.h.
Referenced by Reset(), SetFirstPublicStopTime(), and ToJSON().
|
protected |
Definition at line 288 of file Statistics.h.
Referenced by GetFrameVariableStats(), and ToJSON().
|
protected |
Definition at line 284 of file Statistics.h.
Referenced by Reset(), SetLaunchOrAttachTime(), and ToJSON().
|
protected |
Definition at line 289 of file Statistics.h.
Referenced by CollectStats(), and ToJSON().
|
protected |
Definition at line 290 of file Statistics.h.
Referenced by IncreaseSourceMapDeduceCount(), and ToJSON().
|
protected |
Definition at line 291 of file Statistics.h.
Referenced by IncreaseSourceRealpathAttemptCount(), and ToJSON().
|
protected |
Definition at line 292 of file Statistics.h.
Referenced by IncreaseSourceRealpathCompatibleCount(), and ToJSON().