LLDB mainline
Static Public Member Functions | Static Protected Attributes | List of all members
lldb_private::DebuggerStats Class Reference

#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
 

Detailed Description

Definition at line 204 of file Statistics.h.

Member Function Documentation

◆ GetCollectingStats()

static bool lldb_private::DebuggerStats::GetCollectingStats ( )
inlinestatic

◆ ReportStatistics()

llvm::json::Value DebuggerStats::ReportStatistics ( Debugger debugger,
Target target,
const lldb_private::StatisticsOptions options 
)
static

Get metrics associated with one or all targets in a debugger in JSON format.

Parameters
debuggerThe debugger to get the target list from if target is NULL.
targetThe single target to emit statistics for if non NULL, otherwise dump statistics only for the specified target.
summary_onlyIf true, only report high level summary statistics without targets/modules/breakpoints etc.. details.
Returns
Returns a JSON value that contains all target metrics.

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

◆ SetCollectingStats()

static void lldb_private::DebuggerStats::SetCollectingStats ( bool  enable)
inlinestatic

Member Data Documentation

◆ g_collecting_stats

bool DebuggerStats::g_collecting_stats = false
staticprotected

Definition at line 234 of file Statistics.h.

Referenced by GetCollectingStats(), and SetCollectingStats().


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