LLDB mainline
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lldb_private::TargetStats Class Reference

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)
 
StatsDurationGetCreateTime ()
 
StatsSuccessFailGetExpressionStats ()
 
StatsSuccessFailGetFrameVariableStats ()
 
void Reset (Target &target)
 

Protected Member Functions

void CollectStats (Target &target)
 

Protected Attributes

StatsDuration m_create_time
 
std::optional< StatsTimepointm_launch_or_attach_time
 
std::optional< StatsTimepointm_first_private_stop_time
 
std::optional< StatsTimepointm_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
 

Detailed Description

A class that represents statistics for a since lldb_private::Target.

Definition at line 265 of file Statistics.h.

Member Function Documentation

◆ CollectStats()

void TargetStats::CollectStats ( Target target)
protected

◆ GetCreateTime()

StatsDuration & lldb_private::TargetStats::GetCreateTime ( )
inline

Definition at line 277 of file Statistics.h.

References m_create_time.

Referenced by lldb_private::Target::SetExecutableModule().

◆ GetExpressionStats()

StatsSuccessFail & lldb_private::TargetStats::GetExpressionStats ( )
inline

Definition at line 278 of file Statistics.h.

References m_expr_eval.

Referenced by lldb_private::Target::EvaluateExpression().

◆ GetFrameVariableStats()

StatsSuccessFail & lldb_private::TargetStats::GetFrameVariableStats ( )
inline

Definition at line 279 of file Statistics.h.

References m_frame_var.

Referenced by CommandObjectFrameVariable::DoExecute().

◆ IncreaseSourceMapDeduceCount()

void TargetStats::IncreaseSourceMapDeduceCount ( )

◆ IncreaseSourceRealpathAttemptCount()

void TargetStats::IncreaseSourceRealpathAttemptCount ( uint32_t  count)

◆ IncreaseSourceRealpathCompatibleCount()

void TargetStats::IncreaseSourceRealpathCompatibleCount ( uint32_t  count)

◆ Reset()

void TargetStats::Reset ( Target target)

◆ SetFirstPrivateStopTime()

void TargetStats::SetFirstPrivateStopTime ( )

Definition at line 227 of file Statistics.cpp.

References m_first_private_stop_time.

Referenced by lldb_private::Process::SetPrivateState().

◆ SetFirstPublicStopTime()

void TargetStats::SetFirstPublicStopTime ( )

Definition at line 235 of file Statistics.cpp.

References m_first_public_stop_time.

Referenced by lldb_private::Process::SetPublicState().

◆ SetLaunchOrAttachTime()

void TargetStats::SetLaunchOrAttachTime ( )

◆ ToJSON()

json::Value TargetStats::ToJSON ( Target target,
const lldb_private::StatisticsOptions options 
)

Member Data Documentation

◆ m_create_time

StatsDuration lldb_private::TargetStats::m_create_time
protected

Definition at line 283 of file Statistics.h.

Referenced by GetCreateTime(), and ToJSON().

◆ m_expr_eval

StatsSuccessFail lldb_private::TargetStats::m_expr_eval {"expressionEvaluation"}
protected

Definition at line 287 of file Statistics.h.

Referenced by GetExpressionStats(), and ToJSON().

◆ m_first_private_stop_time

std::optional<StatsTimepoint> lldb_private::TargetStats::m_first_private_stop_time
protected

Definition at line 285 of file Statistics.h.

Referenced by Reset(), SetFirstPrivateStopTime(), SetLaunchOrAttachTime(), and ToJSON().

◆ m_first_public_stop_time

std::optional<StatsTimepoint> lldb_private::TargetStats::m_first_public_stop_time
protected

Definition at line 286 of file Statistics.h.

Referenced by Reset(), SetFirstPublicStopTime(), and ToJSON().

◆ m_frame_var

StatsSuccessFail lldb_private::TargetStats::m_frame_var {"frameVariable"}
protected

Definition at line 288 of file Statistics.h.

Referenced by GetFrameVariableStats(), and ToJSON().

◆ m_launch_or_attach_time

std::optional<StatsTimepoint> lldb_private::TargetStats::m_launch_or_attach_time
protected

Definition at line 284 of file Statistics.h.

Referenced by Reset(), SetLaunchOrAttachTime(), and ToJSON().

◆ m_module_identifiers

std::vector<intptr_t> lldb_private::TargetStats::m_module_identifiers
protected

Definition at line 289 of file Statistics.h.

Referenced by CollectStats(), and ToJSON().

◆ m_source_map_deduce_count

uint32_t lldb_private::TargetStats::m_source_map_deduce_count = 0
protected

Definition at line 290 of file Statistics.h.

Referenced by IncreaseSourceMapDeduceCount(), and ToJSON().

◆ m_source_realpath_attempt_count

uint32_t lldb_private::TargetStats::m_source_realpath_attempt_count = 0
protected

Definition at line 291 of file Statistics.h.

Referenced by IncreaseSourceRealpathAttemptCount(), and ToJSON().

◆ m_source_realpath_compatible_count

uint32_t lldb_private::TargetStats::m_source_realpath_compatible_count = 0
protected

Definition at line 292 of file Statistics.h.

Referenced by IncreaseSourceRealpathCompatibleCount(), and ToJSON().


The documentation for this class was generated from the following files: