mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 08:02:08 +00:00
[lldb] Add timers to Reproducer::Keep and Reproducer::Discard
This commit is contained in:
parent
30dcbb2a83
commit
c82beaba31
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user