[Lldb-commits] [lldb] [lldb] Add symbol/table count into statistics (PR #136226)

David Peixotto via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 17 16:54:54 PDT 2025


================
@@ -318,12 +321,15 @@ llvm::json::Value DebuggerStats::ReportStatistics(
     module_stat.symtab_index_time = module->GetSymtabIndexTime().get().count();
     Symtab *symtab = module->GetSymtab(/*can_create=*/false);
     if (symtab) {
+      module_stat.num_symbols_loaded = symtab->GetNumSymbols();
+      num_symbols_loaded += module_stat.num_symbols_loaded;
+      symtabs_loaded++;
----------------
dmpots wrote:

Nit: The other increments use a pre-increment. Would be nice to be consistent and use it here too.

https://github.com/llvm/llvm-project/pull/136226


More information about the lldb-commits mailing list