[llvm-branch-commits] [lldb] c82beab - [lldb] Add timers to Reproducer::Keep and Reproducer::Discard
Jonas Devlieghere via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 5 09:58:41 PST 2021
Author: Jonas Devlieghere
Date: 2021-01-05T09:54:31-08:00
New Revision: c82beaba319657d93a62523a65f8969aad9ecab1
URL: https://github.com/llvm/llvm-project/commit/c82beaba319657d93a62523a65f8969aad9ecab1
DIFF: https://github.com/llvm/llvm-project/commit/c82beaba319657d93a62523a65f8969aad9ecab1.diff
LOG: [lldb] Add timers to Reproducer::Keep and Reproducer::Discard
Added:
Modified:
lldb/source/Utility/Reproducer.cpp
Removed:
################################################################################
diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp
index f238a2fabc39..f302cce4436f 100644
--- a/lldb/source/Utility/Reproducer.cpp
+++ b/lldb/source/Utility/Reproducer.cpp
@@ -9,6 +9,7 @@
#include "lldb/Utility/Reproducer.h"
#include "lldb/Utility/LLDBAssert.h"
#include "lldb/Utility/ReproducerProvider.h"
+#include "lldb/Utility/Timer.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Threading.h"
@@ -194,6 +195,7 @@ ProviderBase *Generator::Register(std::unique_ptr<ProviderBase> provider) {
}
void Generator::Keep() {
+ LLDB_SCOPED_TIMER();
assert(!m_done);
m_done = true;
@@ -204,6 +206,7 @@ void Generator::Keep() {
}
void Generator::Discard() {
+ LLDB_SCOPED_TIMER();
assert(!m_done);
m_done = true;
More information about the llvm-branch-commits
mailing list