diff options
author | Davide Italiano <davide@freebsd.org> | 2018-09-28 23:27:54 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-09-28 23:27:54 +0000 |
commit | e174746c5e6d9f2cb34d776922457e04f862cada (patch) | |
tree | 1a30fc226853eee68aee56d07f56529335fe71aa /lldb/source/API/SBTarget.cpp | |
parent | 2afc22ed9e099c27e727eb5189c248b9ea66ebc1 (diff) | |
download | bcm5719-llvm-e174746c5e6d9f2cb34d776922457e04f862cada.tar.gz bcm5719-llvm-e174746c5e6d9f2cb34d776922457e04f862cada.zip |
[SBAPI/Target] Expose SetStatistics(bool enable)/GetStatistics().
<rdar://problem/44875808>
llvm-svn: 343368
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 4d2417c711b..d550de1357b 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -202,6 +202,21 @@ SBStructuredData SBTarget::GetStatistics() { return data; } +void SBTarget::SetCollectingStats(bool v) { + TargetSP target_sp(GetSP()); + if (!target_sp) + return; + return target_sp->SetCollectingStats(v); +} + +bool SBTarget::GetCollectingStats() { + TargetSP target_sp(GetSP()); + if (!target_sp) + return false; + return target_sp->GetCollectingStats(); +} + + SBProcess SBTarget::LoadCore(const char *core_file) { lldb::SBError error; // Ignored return LoadCore(core_file, error); |