[lldb][dwarf] Compute fully qualified names on simplified template names with DWARFT...
[llvm-project.git] / lldb / source / API / SBStatisticsOptions.cpp
blob71d4048573b56e6a64af7e9025c8d63f2ca6519b
1 //===-- SBStatisticsOptions.cpp -------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "lldb/API/SBStatisticsOptions.h"
10 #include "lldb/Target/Statistics.h"
11 #include "lldb/Utility/Instrumentation.h"
13 #include "Utils.h"
15 using namespace lldb;
16 using namespace lldb_private;
18 SBStatisticsOptions::SBStatisticsOptions()
19 : m_opaque_up(new StatisticsOptions()) {
20 LLDB_INSTRUMENT_VA(this);
23 SBStatisticsOptions::SBStatisticsOptions(const SBStatisticsOptions &rhs) {
24 LLDB_INSTRUMENT_VA(this, rhs);
26 m_opaque_up = clone(rhs.m_opaque_up);
29 SBStatisticsOptions::~SBStatisticsOptions() = default;
31 const SBStatisticsOptions &
32 SBStatisticsOptions::operator=(const SBStatisticsOptions &rhs) {
33 LLDB_INSTRUMENT_VA(this, rhs);
35 if (this != &rhs)
36 m_opaque_up = clone(rhs.m_opaque_up);
37 return *this;
40 void SBStatisticsOptions::SetSummaryOnly(bool b) {
41 m_opaque_up->SetSummaryOnly(b);
44 bool SBStatisticsOptions::GetSummaryOnly() {
45 return m_opaque_up->GetSummaryOnly();
48 void SBStatisticsOptions::SetIncludeTargets(bool b) {
49 m_opaque_up->SetIncludeTargets(b);
52 bool SBStatisticsOptions::GetIncludeTargets() const {
53 return m_opaque_up->GetIncludeTargets();
56 void SBStatisticsOptions::SetIncludeModules(bool b) {
57 m_opaque_up->SetIncludeModules(b);
60 bool SBStatisticsOptions::GetIncludeModules() const {
61 return m_opaque_up->GetIncludeModules();
64 void SBStatisticsOptions::SetIncludeTranscript(bool b) {
65 m_opaque_up->SetIncludeTranscript(b);
68 bool SBStatisticsOptions::GetIncludeTranscript() const {
69 return m_opaque_up->GetIncludeTranscript();
72 void SBStatisticsOptions::SetReportAllAvailableDebugInfo(bool b) {
73 m_opaque_up->SetLoadAllDebugInfo(b);
76 bool SBStatisticsOptions::GetReportAllAvailableDebugInfo() {
77 return m_opaque_up->GetLoadAllDebugInfo();
80 const lldb_private::StatisticsOptions &SBStatisticsOptions::ref() const {
81 return *m_opaque_up;