[Lldb-commits] [lldb] 6dbea3e - [lldb] Add scoped timer to HostInfoMacOSX::GetXcodeSDKPath
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 1 14:57:50 PST 2021
Author: Jonas Devlieghere
Date: 2021-03-01T14:57:42-08:00
New Revision: 6dbea3efc519756663fc38828f370da6d2f3e2ff
URL: https://github.com/llvm/llvm-project/commit/6dbea3efc519756663fc38828f370da6d2f3e2ff
DIFF: https://github.com/llvm/llvm-project/commit/6dbea3efc519756663fc38828f370da6d2f3e2ff.diff
LOG: [lldb] Add scoped timer to HostInfoMacOSX::GetXcodeSDKPath
Added:
Modified:
lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
Removed:
################################################################################
diff --git a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
index 0376e46720c0..98607a1549ea 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 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
static std::mutex g_sdk_path_mutex;
std::lock_guard<std::mutex> 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;
More information about the lldb-commits
mailing list