From 6dbea3efc519756663fc38828f370da6d2f3e2ff Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 1 Mar 2021 14:57:29 -0800 Subject: [PATCH] [lldb] Add scoped timer to HostInfoMacOSX::GetXcodeSDKPath --- lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm index 0376e46..98607a1 100644 --- a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm +++ b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm @@ -6,12 +6,13 @@ // //===----------------------------------------------------------------------===// -#include "lldb/Host/macosx/HostInfoMacOSX.h" #include "lldb/Host/FileSystem.h" #include "lldb/Host/Host.h" #include "lldb/Host/HostInfo.h" +#include "lldb/Host/macosx/HostInfoMacOSX.h" #include "lldb/Utility/Args.h" #include "lldb/Utility/Log.h" +#include "lldb/Utility/Timer.h" #include "Utility/UuidCompatibility.h" #include "llvm/ADT/SmallString.h" @@ -473,6 +474,8 @@ llvm::StringRef HostInfoMacOSX::GetXcodeSDKPath(XcodeSDK sdk) { static std::mutex g_sdk_path_mutex; std::lock_guard guard(g_sdk_path_mutex); + LLDB_SCOPED_TIMER(); + auto it = g_sdk_path.find(sdk.GetString()); if (it != g_sdk_path.end()) return it->second; -- 2.7.4