LLDB mainline
|
A class that wraps a std::map of SummaryStatistics objects behind a mutex. More...
#include <Statistics.h>
Public Member Functions | |
SummaryStatisticsSP | GetSummaryStatisticsForProvider (lldb_private::TypeSummaryImpl &provider) |
Get the SummaryStatistics object for a given provider name, or insert if statistics for that provider is not in the map. | |
llvm::json::Value | ToJSON () |
void | Reset () |
Private Attributes | |
llvm::StringMap< SummaryStatisticsSP > | m_summary_stats_map |
std::mutex | m_map_mutex |
A class that wraps a std::map of SummaryStatistics objects behind a mutex.
Definition at line 237 of file Statistics.h.
|
inline |
Get the SummaryStatistics object for a given provider name, or insert if statistics for that provider is not in the map.
Definition at line 242 of file Statistics.h.
References lldb_private::TypeSummaryImpl::GetName(), lldb_private::TypeSummaryImpl::GetSummaryKindName(), m_map_mutex, and m_summary_stats_map.
Referenced by lldb_private::Target::GetSummaryStatisticsSPForProviderName().
void SummaryStatisticsCache::Reset | ( | ) |
Definition at line 488 of file Statistics.cpp.
References m_summary_stats_map.
Referenced by lldb_private::TargetStats::Reset().
json::Value SummaryStatisticsCache::ToJSON | ( | ) |
Definition at line 479 of file Statistics.cpp.
References m_map_mutex, and m_summary_stats_map.
Referenced by lldb_private::TargetStats::ToJSON().
|
private |
Definition at line 261 of file Statistics.h.
Referenced by GetSummaryStatisticsForProvider(), and ToJSON().
|
private |
Definition at line 260 of file Statistics.h.
Referenced by GetSummaryStatisticsForProvider(), Reset(), and ToJSON().