LLDB mainline
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
lldb_private::SummaryStatistics Class Reference

A class that represents statistics about a TypeSummaryProviders invocations. More...

#include <Statistics.h>

Classes

class  SummaryInvocation
 Basic RAII class to increment the summary count when the call is complete. More...
 

Public Member Functions

 SummaryStatistics (std::string name, std::string impl_type)
 
std::string GetName () const
 
double GetTotalTime () const
 
uint64_t GetSummaryCount () const
 
StatsDurationGetDurationReference ()
 
std::string GetSummaryKindName () const
 
llvm::json::Value ToJSON () const
 
void Reset ()
 

Private Member Functions

void OnInvoked () noexcept
 

Private Attributes

lldb_private::StatsDuration m_total_time
 
const std::string m_impl_type
 
const std::string m_name
 
std::atomic< uint64_t > m_count
 

Detailed Description

A class that represents statistics about a TypeSummaryProviders invocations.

Note
All members of this class need to be accessed in a thread safe manner

Definition at line 187 of file Statistics.h.

Constructor & Destructor Documentation

◆ SummaryStatistics()

lldb_private::SummaryStatistics::SummaryStatistics ( std::string  name,
std::string  impl_type 
)
inlineexplicit

Definition at line 189 of file Statistics.h.

Member Function Documentation

◆ GetDurationReference()

StatsDuration & lldb_private::SummaryStatistics::GetDurationReference ( )
inline

Definition at line 200 of file Statistics.h.

References m_total_time.

◆ GetName()

std::string lldb_private::SummaryStatistics::GetName ( ) const
inline

Definition at line 193 of file Statistics.h.

References m_name.

Referenced by ToJSON().

◆ GetSummaryCount()

uint64_t lldb_private::SummaryStatistics::GetSummaryCount ( ) const
inline

Definition at line 196 of file Statistics.h.

References m_count.

Referenced by ToJSON().

◆ GetSummaryKindName()

std::string lldb_private::SummaryStatistics::GetSummaryKindName ( ) const
inline

Definition at line 202 of file Statistics.h.

References m_impl_type.

Referenced by ToJSON().

◆ GetTotalTime()

double lldb_private::SummaryStatistics::GetTotalTime ( ) const
inline

Definition at line 194 of file Statistics.h.

References lldb_private::StatsDuration::get(), and m_total_time.

Referenced by ToJSON().

◆ OnInvoked()

void lldb_private::SummaryStatistics::OnInvoked ( )
inlineprivatenoexcept

Definition at line 229 of file Statistics.h.

References m_count.

◆ Reset()

void lldb_private::SummaryStatistics::Reset ( )
inline

Definition at line 206 of file Statistics.h.

References m_total_time, and lldb_private::StatsDuration::reset().

◆ ToJSON()

llvm::json::Value SummaryStatistics::ToJSON ( ) const

Definition at line 470 of file Statistics.cpp.

References GetName(), GetSummaryCount(), GetSummaryKindName(), and GetTotalTime().

Member Data Documentation

◆ m_count

std::atomic<uint64_t> lldb_private::SummaryStatistics::m_count
private

Definition at line 233 of file Statistics.h.

Referenced by GetSummaryCount(), and OnInvoked().

◆ m_impl_type

const std::string lldb_private::SummaryStatistics::m_impl_type
private

Definition at line 231 of file Statistics.h.

Referenced by GetSummaryKindName().

◆ m_name

const std::string lldb_private::SummaryStatistics::m_name
private

Definition at line 232 of file Statistics.h.

Referenced by GetName().

◆ m_total_time

lldb_private::StatsDuration lldb_private::SummaryStatistics::m_total_time
private

Definition at line 230 of file Statistics.h.

Referenced by GetDurationReference(), GetTotalTime(), and Reset().


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