LLDB mainline
SBStatisticsOptions.cpp
Go to the documentation of this file.
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//===----------------------------------------------------------------------===//
8
12
13#include "Utils.h"
14
15using namespace lldb;
16using namespace lldb_private;
17
19 : m_opaque_up(new StatisticsOptions()) {
21 m_opaque_up->summary_only = false;
22}
23
25 LLDB_INSTRUMENT_VA(this, rhs);
26
28}
29
31
34 LLDB_INSTRUMENT_VA(this, rhs);
35
36 if (this != &rhs)
38 return *this;
39}
40
42 m_opaque_up->summary_only = b;
43}
44
45bool SBStatisticsOptions::GetSummaryOnly() { return m_opaque_up->summary_only; }
46
48 m_opaque_up->load_all_debug_info = b;
49}
50
52 return m_opaque_up->load_all_debug_info;
53}
54
56 return *m_opaque_up;
57}
#define LLDB_INSTRUMENT_VA(...)
This class handles the verbosity when dumping statistics.
const SBStatisticsOptions & operator=(const lldb::SBStatisticsOptions &rhs)
std::unique_ptr< lldb_private::StatisticsOptions > m_opaque_up
void SetReportAllAvailableDebugInfo(bool b)
If set to true, the debugger will load all debug info that is available and report statistics on the ...
const lldb_private::StatisticsOptions & ref() const
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
Definition: Utils.h:17
Definition: SBAddress.h:15