llvm-svn: 251992
This commit is contained in:
Tamas Berghammer 2015-11-03 22:29:16 +00:00
parent a8b653a372
commit 276743f060
1 changed files with 3 additions and 0 deletions

View File

@ -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());
}
}