================ @@ -198,16 +198,24 @@ SBDebugger SBTarget::GetDebugger() const { } SBStructuredData SBTarget::GetStatistics() { + LLDB_INSTRUMENT_VA(this); + SBStatisticsOptions options; + options.SetSummaryOnly(false); + return GetStatistics(options); +} + +SBStructuredData SBTarget::GetStatistics(SBStatisticsOptions options) { LLDB_INSTRUMENT_VA(this); SBStructuredData data; TargetSP target_sp(GetSP()); if (!target_sp) return data; std::string json_str = - llvm::formatv("{0:2}", - DebuggerStats::ReportStatistics(target_sp->GetDebugger(), - target_sp.get())).str(); + llvm::formatv( + "{0:2}", DebuggerStats::ReportStatistics( + target_sp->GetDebugger(), target_sp.get(), options.GetStatisticsOptions())) ---------------- clayborg wrote:
``` target_sp->GetDebugger(), target_sp.get(), options.ref())) ``` https://github.com/llvm/llvm-project/pull/80745 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits