[Lldb-commits] [lldb] Support statistics dump summary only mode (PR #80745)

via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 5 13:36:44 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 76706090c2f672ae933798292bfa889f9e3dac3d ebf4db52352c39f33e483affa2bcee88298b353a -- lldb/include/lldb/API/SBTarget.h lldb/include/lldb/Target/Statistics.h lldb/include/lldb/Target/Target.h lldb/source/API/SBTarget.cpp lldb/source/Commands/CommandObjectStats.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h lldb/source/Target/Statistics.cpp lldb/source/Target/Target.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Target/Statistics.cpp b/lldb/source/Target/Statistics.cpp
index 0738c2fc68..8189f87c3d 100644
--- a/lldb/source/Target/Statistics.cpp
+++ b/lldb/source/Target/Statistics.cpp
@@ -327,29 +327,28 @@ llvm::json::Value DebuggerStats::ReportStatistics(Debugger &debugger,
   json::Value cmd_stats = debugger.GetCommandInterpreter().GetStatistics();
 
   json::Object global_stats{
-      {"targets", std::move(json_targets)},
-      {"modules", std::move(json_modules)},
-      {"memory", std::move(json_memory)},
-      {"commands", std::move(cmd_stats)},
+    {"targets", std::move(json_targets)}, {"modules", std::move(json_modules)},
+        {"memory", std::move(json_memory)}, {"commands", std::move(cmd_stats)},
 =======
   json::Object global_stats{
 >>>>>>> a018d51da52f (Support statistics dump summary only mode)
-      {"totalSymbolTableParseTime", symtab_parse_time},
-      {"totalSymbolTableIndexTime", symtab_index_time},
-      {"totalSymbolTablesLoadedFromCache", symtabs_loaded},
-      {"totalSymbolTablesSavedToCache", symtabs_saved},
-      {"totalDebugInfoParseTime", debug_parse_time},
-      {"totalDebugInfoIndexTime", debug_index_time},
-      {"totalDebugInfoIndexLoadedFromCache", debug_index_loaded},
-      {"totalDebugInfoIndexSavedToCache", debug_index_saved},
-      {"totalDebugInfoByteSize", debug_info_size},
-      {"totalModuleCount", num_modules},
-      {"totalModuleCountHasDebugInfo", num_modules_has_debug_info},
-      {"totalModuleCountWithVariableErrors", num_modules_with_variable_errors},
-      {"totalModuleCountWithIncompleteTypes",
-       num_modules_with_incomplete_types},
-      {"totalDebugInfoEnabled", num_debug_info_enabled_modules},
-      {"totalSymbolTableStripped", num_stripped_modules},
+        {"totalSymbolTableParseTime", symtab_parse_time},
+        {"totalSymbolTableIndexTime", symtab_index_time},
+        {"totalSymbolTablesLoadedFromCache", symtabs_loaded},
+        {"totalSymbolTablesSavedToCache", symtabs_saved},
+        {"totalDebugInfoParseTime", debug_parse_time},
+        {"totalDebugInfoIndexTime", debug_index_time},
+        {"totalDebugInfoIndexLoadedFromCache", debug_index_loaded},
+        {"totalDebugInfoIndexSavedToCache", debug_index_saved},
+        {"totalDebugInfoByteSize", debug_info_size},
+        {"totalModuleCount", num_modules},
+        {"totalModuleCountHasDebugInfo", num_modules_has_debug_info},
+        {"totalModuleCountWithVariableErrors",
+         num_modules_with_variable_errors},
+        {"totalModuleCountWithIncompleteTypes",
+         num_modules_with_incomplete_types},
+        {"totalDebugInfoEnabled", num_debug_info_enabled_modules},
+        {"totalSymbolTableStripped", num_stripped_modules},
   };
 
   if (target) {

``````````

</details>


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


More information about the lldb-commits mailing list