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

#include <Statistics.h>

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

Static Public Member Functions

static void SetCollectingStats (bool enable)
 
static bool GetCollectingStats ()
 
static llvm::json::Value ReportStatistics (Debugger &debugger, Target *target)
 Get metrics associated with one or all targets in a debugger in JSON format. More...
 

Static Protected Attributes

static bool g_collecting_stats = false
 

Detailed Description

Definition at line 152 of file Statistics.h.

Member Function Documentation

◆ GetCollectingStats()

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

Definition at line 155 of file Statistics.h.

References g_collecting_stats.

◆ ReportStatistics()

llvm::json::Value DebuggerStats::ReportStatistics ( Debugger debugger,
Target target 
)
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.
Returns
Returns a JSON value that contains all target metrics.

Definition at line 166 of file Statistics.cpp.

References lldb_private::ModuleStats::debug_index_time, lldb_private::ModuleStats::debug_info_enabled, 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::StatsDuration::get(), lldb_private::Module::GetArchitecture(), lldb_private::UUID::GetAsString(), 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::SymbolFile::GetLoadDebugInfoEnabled(), lldb_private::SymbolFile::GetObjectFile(), lldb_private::Module::GetObjectFile(), lldb_private::Module::GetObjectName(), lldb_private::FileSpec::GetPath(), lldb_private::Module::GetSymbolFile(), lldb_private::Module::GetSymtab(), lldb_private::Module::GetSymtabIndexTime(), lldb_private::Module::GetSymtabParseTime(), lldb_private::Debugger::GetTargetList(), 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::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, and lldb_private::ModuleStats::uuid.

◆ SetCollectingStats()

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

Definition at line 154 of file Statistics.h.

References g_collecting_stats.

Member Data Documentation

◆ g_collecting_stats

bool DebuggerStats::g_collecting_stats = false
staticprotected

Definition at line 176 of file Statistics.h.

Referenced by GetCollectingStats(), and SetCollectingStats().


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