[Lldb-commits] [lldb] Add options to "statistics dump" to control what sections are dumped (PR #95075)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 14 12:13:58 PDT 2024
================
@@ -44,6 +44,30 @@ void SBStatisticsOptions::SetSummaryOnly(bool b) {
bool SBStatisticsOptions::GetSummaryOnly() { return m_opaque_up->summary_only; }
+void SBStatisticsOptions::SetIncludeTargets(bool b) {
+ m_opaque_up->include_targets = b;
+}
+
+bool SBStatisticsOptions::GetIncludeTargets() const {
+ return m_opaque_up->include_targets;
+}
+
+void SBStatisticsOptions::SetIncludeModules(bool b) {
+ m_opaque_up->include_modules = b;
+}
+
+bool SBStatisticsOptions::GetIncludeModules() const {
+ return m_opaque_up->include_modules;
+}
+
+void SBStatisticsOptions::SetIncludeTranscript(bool b) {
+ m_opaque_up->include_transcript = b;
+}
+
+bool SBStatisticsOptions::GetIncludeTranscript() const {
+ return m_opaque_up->include_transcript;
+}
+
----------------
clayborg wrote:
If we switch the internal `StatisticsOptions` over to use optionals + accessors as suggested above, this will accurately track when and if any settings are set here via the API, and do the right thing, just like the command line command.
https://github.com/llvm/llvm-project/pull/95075
More information about the lldb-commits
mailing list