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

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 5 20:52:03 PST 2024


================
@@ -83,13 +86,21 @@ class CommandObjectStatsDump : public CommandObjectParsed {
 
     void OptionParsingStarting(ExecutionContext *execution_context) override {
       m_all_targets = false;
+      m_summary_only = false;
     }
 
     llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
       return llvm::ArrayRef(g_statistics_dump_options);
     }
 
+    StatisticsOptions GetStatisticsOptions() {
+      StatisticsOptions options;
+      options.summary_only = m_summary_only;
+      return options;
+    }
+
     bool m_all_targets = false;
+    bool m_summary_only = false;
----------------
clayborg wrote:

Change this ivar from:
```
bool summary_only = false;
```
to:
```
lldb_private::StatisticsOptions m_stats_options;
```
And fill things into this struct when parsing the options.

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


More information about the lldb-commits mailing list