[lldb] Add timers to Reproducer::Keep and Reproducer::Discard

This commit is contained in:
Jonas Devlieghere 2020-12-23 16:18:54 -08:00
parent 30dcbb2a83
commit c82beaba31

View File

@ -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;