Skip to content

Commit e347255

Browse files
Merge pull request #10405 from adrian-prantl/reflection-signpost
[lldb] Sink timer into the initialization path
2 parents 15ee371 + a32c7c9 commit e347255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ SwiftLanguageRuntime::GetConformances(llvm::StringRef mangled_name) {
426426
}
427427

428428
void SwiftLanguageRuntime::SetupReflection() {
429-
LLDB_SCOPED_TIMER();
430-
431429
std::lock_guard<std::recursive_mutex> lock(m_reflection_ctx_mutex);
432430
if (m_initialized_reflection_ctx)
433431
return;
434432

433+
LLDB_SCOPED_TIMER();
434+
435435
// The global ABI bit is read by the Swift runtime library.
436436
SetupABIBit();
437437
SetupExclusivity();

0 commit comments

Comments
 (0)