diff options
Diffstat (limited to 'lldb/source/Utility/ReproducerInstrumentation.cpp')
-rw-r--r-- | lldb/source/Utility/ReproducerInstrumentation.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Utility/ReproducerInstrumentation.cpp b/lldb/source/Utility/ReproducerInstrumentation.cpp index dc42f6ffa0b..6702752fe48 100644 --- a/lldb/source/Utility/ReproducerInstrumentation.cpp +++ b/lldb/source/Utility/ReproducerInstrumentation.cpp @@ -117,4 +117,13 @@ Recorder::~Recorder() { UpdateBoundary(); } +void Recorder::Log(unsigned id) { +#ifndef LLDB_REPRO_INSTR_TRACE + LLDB_LOG(GetLogIfAllCategoriesSet(LIBLLDB_LOG_API), "Recording {0}: {1}", id, + m_pretty_func); +#else + llvm::errs() << "Recording " << id << ": " << m_pretty_func << "\n"; +#endif +} + bool lldb_private::repro::Recorder::g_global_boundary; |