From c82beaba319657d93a62523a65f8969aad9ecab1 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 23 Dec 2020 16:18:54 -0800 Subject: [PATCH] [lldb] Add timers to Reproducer::Keep and Reproducer::Discard --- lldb/source/Utility/Reproducer.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 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;