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}
22
24 LLDB_INSTRUMENT_VA(this, rhs);
25
27}
28
30
33 LLDB_INSTRUMENT_VA(this, rhs);
34
35 if (this != &rhs)
37 return *this;
38}
39
41 m_opaque_up->SetSummaryOnly(b);
42}
43
45 return m_opaque_up->GetSummaryOnly();
46}
47
49 m_opaque_up->SetIncludeTargets(b);
50}
51
53 return m_opaque_up->GetIncludeTargets();
54}
55
57 m_opaque_up->SetIncludeModules(b);
58}
59
61 return m_opaque_up->GetIncludeModules();
62}
63
65 m_opaque_up->SetIncludeTranscript(b);
66}
67
69 return m_opaque_up->GetIncludeTranscript();
70}
71
73 m_opaque_up->SetLoadAllDebugInfo(b);
74}
75
77 return m_opaque_up->GetLoadAllDebugInfo();
78}
79
81 return *m_opaque_up;
82}
#define LLDB_INSTRUMENT_VA(...)
This class handles the verbosity when dumping statistics.
void SetIncludeTargets(bool b)
If true, dump statistics for the targets, including breakpoints, expression evaluations,...
const SBStatisticsOptions & operator=(const lldb::SBStatisticsOptions &rhs)
std::unique_ptr< lldb_private::StatisticsOptions > m_opaque_up
void SetSummaryOnly(bool b)
If true, dump only high-level summary statistics.
void SetReportAllAvailableDebugInfo(bool b)
If set to true, the debugger will load all debug info that is available and report statistics on the ...
void SetIncludeModules(bool b)
If true, dump statistics for the modules, including time and size of various aspects of the module an...
const lldb_private::StatisticsOptions & ref() const
void SetIncludeTranscript(bool b)
If true and the setting interpreter.save-transcript is enabled, include a JSON array with all command...
A class that represents a running process on the host machine.
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
Definition: Utils.h:17
Definition: SBAddress.h:15