[Lldb-commits] [lldb] r251992 - wip
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 3 14:29:17 PST 2015
Author: tberghammer
Date: Tue Nov 3 16:29:16 2015
New Revision: 251992
URL: http://llvm.org/viewvc/llvm-project?rev=251992&view=rev
Log:
wip
Modified:
lldb/trunk/source/Symbol/Symtab.cpp
Modified: lldb/trunk/source/Symbol/Symtab.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Symtab.cpp?rev=251992&r1=251991&r2=251992&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Symtab.cpp (original)
+++ lldb/trunk/source/Symbol/Symtab.cpp Tue Nov 3 16:29:16 2015
@@ -265,6 +265,7 @@ Symtab::InitNameIndexes()
// Protected function, no need to lock mutex...
if (!m_name_indexes_computed)
{
+ auto start = std::chrono::system_clock::now();
m_name_indexes_computed = true;
Timer scoped_timer (__PRETTY_FUNCTION__, "%s", __PRETTY_FUNCTION__);
// Create the name index vector to be able to quickly search by name
@@ -462,6 +463,8 @@ Symtab::InitNameIndexes()
// a.Printf ("%s METHOD\n", m_symbols[entry.value].GetMangled().GetName().GetCString());
// }
// }
+ auto end = std::chrono::system_clock::now();
+ fprintf(stderr, "Time: %lu\n", std::chrono::duration_cast<std::chrono::microseconds>(end - start).count());
}
}
More information about the lldb-commits
mailing list