Clang: Allow to time high-level functions

...by enabling the logging rule:

    qtc.clangbackend.timers=true

Change-Id: I085c6bbebc0343b74bcb90119d1ebb80ad49518d
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-07-28 16:04:49 +02:00
parent 3b314e50c8
commit b783bcea60
5 changed files with 52 additions and 8 deletions

View File

@@ -236,13 +236,10 @@ static bool areCommandsRegistered = false;
void IpcCommunicator::initializeBackend()
{
// TODO: Add a asynchron API to ConnectionClient, otherwise we might hang here
if (!areCommandsRegistered) {
areCommandsRegistered = true;
Commands::registerCommands();
}
QElapsedTimer timer; timer.start();
const QString clangBackEndProcessPath = backendProcessPath();
qCDebug(log) << "Starting" << clangBackEndProcessPath;
@@ -254,12 +251,9 @@ void IpcCommunicator::initializeBackend()
connect(&m_connection, &ConnectionClient::processRestarted,
this, &IpcCommunicator::onBackendRestarted);
if (m_connection.connectToServer()) {
qCDebug(log) << "...started and connected in" << timer.elapsed() << "ms.";
// TODO: Add a asynchron API to ConnectionClient, otherwise we might hang here
if (m_connection.connectToServer())
initializeBackendWithCurrentData();
} else {
qCDebug(log) << "...failed.";
}
}
void IpcCommunicator::registerEmptyProjectForProjectLessFiles()