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

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 6 16:10:03 PST 2024


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

return a `const StatisticsOptions&` if you want to. The struct isn't big now, so no big deal.

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


More information about the lldb-commits mailing list