Skip to content

Commit 6dbea3e

Browse files
committed
[lldb] Add scoped timer to HostInfoMacOSX::GetXcodeSDKPath
1 parent c35761d commit 6dbea3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "lldb/Host/macosx/HostInfoMacOSX.h"
109
#include "lldb/Host/FileSystem.h"
1110
#include "lldb/Host/Host.h"
1211
#include "lldb/Host/HostInfo.h"
12+
#include "lldb/Host/macosx/HostInfoMacOSX.h"
1313
#include "lldb/Utility/Args.h"
1414
#include "lldb/Utility/Log.h"
15+
#include "lldb/Utility/Timer.h"
1516
#include "Utility/UuidCompatibility.h"
1617

1718
#include "llvm/ADT/SmallString.h"
@@ -473,6 +474,8 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
473474
static std::mutex g_sdk_path_mutex;
474475

475476
std::lock_guard<std::mutex> guard(g_sdk_path_mutex);
477+
LLDB_SCOPED_TIMER();
478+
476479
auto it = g_sdk_path.find(sdk.GetString());
477480
if (it != g_sdk_path.end())
478481
return it->second;

0 commit comments

Comments
 (0)