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 ()
 

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 179 of file Statistics.h.

Member Function Documentation

◆ CollectStats()

void TargetStats::CollectStats ( Target target)
protected

◆ GetCreateTime()

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

Definition at line 191 of file Statistics.h.

References m_create_time.

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

◆ GetExpressionStats()

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

Definition at line 192 of file Statistics.h.

References m_expr_eval.

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

◆ GetFrameVariableStats()

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

Definition at line 193 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)

◆ SetFirstPrivateStopTime()

void TargetStats::SetFirstPrivateStopTime ( )

Definition at line 207 of file Statistics.cpp.

References m_first_private_stop_time.

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

◆ SetFirstPublicStopTime()

void TargetStats::SetFirstPublicStopTime ( )

Definition at line 215 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 196 of file Statistics.h.

Referenced by GetCreateTime(), and ToJSON().

◆ m_expr_eval

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

Definition at line 200 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 198 of file Statistics.h.

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

◆ m_first_public_stop_time

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

Definition at line 199 of file Statistics.h.

Referenced by SetFirstPublicStopTime(), and ToJSON().

◆ m_frame_var

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

Definition at line 201 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 197 of file Statistics.h.

Referenced by SetLaunchOrAttachTime(), and ToJSON().

◆ m_module_identifiers

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

Definition at line 202 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 203 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 204 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 205 of file Statistics.h.

Referenced by IncreaseSourceRealpathCompatibleCount(), and ToJSON().


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