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

Detailed Description

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

Definition at line 178 of file Statistics.h.

Member Function Documentation

◆ CollectStats()

void TargetStats::CollectStats ( Target target)
protected

◆ GetCreateTime()

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

Definition at line 188 of file Statistics.h.

References m_create_time.

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

◆ GetExpressionStats()

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

Definition at line 189 of file Statistics.h.

References m_expr_eval.

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

◆ GetFrameVariableStats()

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

Definition at line 190 of file Statistics.h.

References m_frame_var.

Referenced by CommandObjectFrameVariable::DoExecute().

◆ IncreaseSourceMapDeduceCount()

void TargetStats::IncreaseSourceMapDeduceCount ( )

◆ SetFirstPrivateStopTime()

void TargetStats::SetFirstPrivateStopTime ( )

Definition at line 203 of file Statistics.cpp.

References m_first_private_stop_time.

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

◆ SetFirstPublicStopTime()

void TargetStats::SetFirstPublicStopTime ( )

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

Referenced by GetCreateTime(), and ToJSON().

◆ m_expr_eval

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

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

Referenced by SetFirstPublicStopTime(), and ToJSON().

◆ m_frame_var

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

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

Referenced by IncreaseSourceMapDeduceCount(), and ToJSON().


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