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>

Collaboration diagram for lldb_private::TargetStats:
Collaboration graph
[legend]

Public Member Functions

llvm::json::Value ToJSON (Target &target)
 
void SetLaunchOrAttachTime ()
 
void SetFirstPrivateStopTime ()
 
void SetFirstPublicStopTime ()
 
void IncreaseSourceMapDeduceCount ()
 
StatsDurationGetCreateTime ()
 
StatsSuccessFailGetExpressionStats ()
 
StatsSuccessFailGetFrameVariableStats ()
 

Protected Member Functions

void CollectStats (Target &target)
 

Protected Attributes

StatsDuration m_create_time
 
llvm::Optional< StatsTimepointm_launch_or_attach_time
 
llvm::Optional< StatsTimepointm_first_private_stop_time
 
llvm::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 133 of file Statistics.h.

Member Function Documentation

◆ CollectStats()

void TargetStats::CollectStats ( Target target)
protected

◆ GetCreateTime()

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

Definition at line 142 of file Statistics.h.

References m_create_time.

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

◆ GetExpressionStats()

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

Definition at line 143 of file Statistics.h.

References m_expr_eval.

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

◆ GetFrameVariableStats()

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

Definition at line 144 of file Statistics.h.

References m_frame_var.

Referenced by CommandObjectFrameVariable::DoExecute().

◆ IncreaseSourceMapDeduceCount()

void TargetStats::IncreaseSourceMapDeduceCount ( )

◆ SetFirstPrivateStopTime()

void TargetStats::SetFirstPrivateStopTime ( )

Definition at line 164 of file Statistics.cpp.

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

◆ SetFirstPublicStopTime()

void TargetStats::SetFirstPublicStopTime ( )

Definition at line 172 of file Statistics.cpp.

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

◆ SetLaunchOrAttachTime()

void TargetStats::SetLaunchOrAttachTime ( )

Definition at line 159 of file Statistics.cpp.

Referenced by lldb_private::Target::Attach(), and lldb_private::Target::Launch().

◆ ToJSON()

json::Value TargetStats::ToJSON ( Target target)

Member Data Documentation

◆ m_create_time

StatsDuration lldb_private::TargetStats::m_create_time
protected

Definition at line 147 of file Statistics.h.

Referenced by GetCreateTime().

◆ m_expr_eval

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

Definition at line 151 of file Statistics.h.

Referenced by GetExpressionStats().

◆ m_first_private_stop_time

llvm::Optional<StatsTimepoint> lldb_private::TargetStats::m_first_private_stop_time
protected

Definition at line 149 of file Statistics.h.

◆ m_first_public_stop_time

llvm::Optional<StatsTimepoint> lldb_private::TargetStats::m_first_public_stop_time
protected

Definition at line 150 of file Statistics.h.

◆ m_frame_var

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

Definition at line 152 of file Statistics.h.

Referenced by GetFrameVariableStats().

◆ m_launch_or_attach_time

llvm::Optional<StatsTimepoint> lldb_private::TargetStats::m_launch_or_attach_time
protected

Definition at line 148 of file Statistics.h.

◆ m_module_identifiers

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

Definition at line 153 of file Statistics.h.

◆ m_source_map_deduce_count

uint32_t lldb_private::TargetStats::m_source_map_deduce_count = 0
protected

Definition at line 154 of file Statistics.h.


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