LLDB mainline
|
#include <Statistics.h>
Static Public Member Functions | |
static void | SetCollectingStats (bool enable) |
static bool | GetCollectingStats () |
static llvm::json::Value | ReportStatistics (Debugger &debugger, Target *target, const lldb_private::StatisticsOptions &options) |
Get metrics associated with one or all targets in a debugger in JSON format. | |
Static Protected Attributes | |
static bool | g_collecting_stats = false |
Definition at line 204 of file Statistics.h.
|
inlinestatic |
Definition at line 207 of file Statistics.h.
References g_collecting_stats.
Referenced by CommandObjectStatsEnable::DoExecute(), CommandObjectStatsDisable::DoExecute(), and lldb::SBTarget::GetCollectingStats().
|
static |
Get metrics associated with one or all targets in a debugger in JSON format.
debugger | The debugger to get the target list from if target is NULL. |
target | The single target to emit statistics for if non NULL, otherwise dump statistics only for the specified target. |
summary_only | If true, only report high level summary statistics without targets/modules/breakpoints etc.. details. |
Definition at line 225 of file Statistics.cpp.
References lldb_private::ModuleStats::debug_index_time, lldb_private::ModuleStats::debug_info_enabled, lldb_private::ModuleStats::debug_info_had_incomplete_types, lldb_private::ModuleStats::debug_info_had_variable_errors, lldb_private::ModuleStats::debug_info_index_loaded_from_cache, lldb_private::ModuleStats::debug_info_index_saved_to_cache, lldb_private::ModuleStats::debug_info_size, lldb_private::ModuleStats::debug_parse_time, lldb_private::Module::ForEachTypeSystem(), lldb_private::StatsDuration::get(), lldb_private::Module::GetAllocatedModuleAtIndex(), lldb_private::Module::GetAllocationModuleCollectionMutex(), lldb_private::Module::GetArchitecture(), lldb_private::UUID::GetAsString(), lldb_private::Debugger::GetCommandInterpreter(), lldb_private::SymbolFile::GetDebugInfoHadFrameVariableErrors(), lldb_private::SymbolFile::GetDebugInfoIndexTime(), lldb_private::SymbolFile::GetDebugInfoIndexWasLoadedFromCache(), lldb_private::SymbolFile::GetDebugInfoIndexWasSavedToCache(), lldb_private::SymbolFile::GetDebugInfoModules(), lldb_private::SymbolFile::GetDebugInfoParseTime(), lldb_private::SymbolFile::GetDebugInfoSize(), lldb_private::ObjectFile::GetFileSpec(), lldb_private::Module::GetFileSpec(), lldb_private::StatisticsOptions::GetIncludeModules(), lldb_private::StatisticsOptions::GetIncludeTargets(), lldb_private::StatisticsOptions::GetIncludeTranscript(), lldb_private::StatisticsOptions::GetLoadAllDebugInfo(), lldb_private::SymbolFile::GetLoadDebugInfoEnabled(), lldb_private::Module::GetNumberAllocatedModules(), lldb_private::Module::GetObjectFile(), lldb_private::SymbolFile::GetObjectFile(), lldb_private::Module::GetObjectName(), lldb_private::FileSpec::GetPath(), lldb_private::StructuredData::Array::GetSize(), lldb_private::CommandInterpreter::GetStatistics(), lldb_private::StatisticsOptions::GetSummaryOnly(), lldb_private::Module::GetSymbolFile(), lldb_private::Module::GetSymtab(), lldb_private::Module::GetSymtabIndexTime(), lldb_private::Module::GetSymtabParseTime(), lldb_private::Debugger::GetTargetList(), lldb_private::CommandInterpreter::GetTranscript(), lldb_private::ArchSpec::GetTriple(), lldb_private::Module::GetUUID(), lldb_private::Symtab::GetWasLoadedFromCache(), lldb_private::Symtab::GetWasSavedToCache(), lldb_private::ModuleStats::identifier, lldb_private::ObjectFile::IsStripped(), lldb_private::ModuleList::Modules(), lldb_private::ModuleStats::path, lldb_private::Target::ReportStatistics(), lldb_private::StructuredData::Array::Serialize(), lldb_private::ModuleStats::symfile_modules, lldb_private::ModuleStats::symfile_path, lldb_private::ModuleStats::symtab_index_time, lldb_private::ModuleStats::symtab_loaded_from_cache, lldb_private::ModuleStats::symtab_parse_time, lldb_private::ModuleStats::symtab_saved_to_cache, lldb_private::ModuleStats::symtab_stripped, lldb_private::TargetList::Targets(), lldb_private::ModuleStats::ToJSON(), lldb_private::ConstStringStats::ToJSON(), lldb_private::ModuleStats::triple, lldb_private::ModuleStats::type_system_stats, and lldb_private::ModuleStats::uuid.
Referenced by CommandObjectStatsDump::DoExecute(), and lldb::SBTarget::GetStatistics().
|
inlinestatic |
Definition at line 206 of file Statistics.h.
References g_collecting_stats.
Referenced by CommandObjectStatsEnable::DoExecute(), CommandObjectStatsDisable::DoExecute(), and lldb::SBTarget::SetCollectingStats().
|
staticprotected |
Definition at line 234 of file Statistics.h.
Referenced by GetCollectingStats(), and SetCollectingStats().