summaryrefslogtreecommitdiff
path: root/src/libs/clangbackendipc/connectionclient.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-28 16:04:49 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-29 08:53:24 +0000
commitb783bcea600d590824c0431f6afb9aa28856db06 (patch)
tree309557ddee041eda431c88e5364b7e3b76bb445c /src/libs/clangbackendipc/connectionclient.cpp
parent3b314e50c8009e1140da255fadc50eb9cb8d295e (diff)
downloadqt-creator-b783bcea600d590824c0431f6afb9aa28856db06.tar.gz
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>
Diffstat (limited to 'src/libs/clangbackendipc/connectionclient.cpp')
-rw-r--r--src/libs/clangbackendipc/connectionclient.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/clangbackendipc/connectionclient.cpp b/src/libs/clangbackendipc/connectionclient.cpp
index 83b01fc4a2..6a7c4b3425 100644
--- a/src/libs/clangbackendipc/connectionclient.cpp
+++ b/src/libs/clangbackendipc/connectionclient.cpp
@@ -30,6 +30,7 @@
#include "connectionclient.h"
+#include "clangbackendipcdebugutils.h"
#include "cmbcompletecodecommand.h"
#include "cmbregistertranslationunitsforcodecompletioncommand.h"
#include "cmbunregistertranslationunitsforcodecompletioncommand.h"
@@ -76,6 +77,8 @@ ConnectionClient::~ConnectionClient()
bool ConnectionClient::connectToServer()
{
+ TIME_SCOPE_DURATION("ConnectionClient::connectToServer");
+
startProcess();
resetProcessAliveTimer();
const bool isConnected = connectToLocalSocket();
@@ -123,6 +126,8 @@ void ConnectionClient::setProcessAliveTimerInterval(int processTimerInterval)
void ConnectionClient::startProcess()
{
+ TIME_SCOPE_DURATION("ConnectionClient::startProcess");
+
if (!isProcessIsRunning()) {
connectProcessFinished();
connectStandardOutputAndError();
@@ -216,6 +221,8 @@ void ConnectionClient::printStandardError()
void ConnectionClient::finishProcess()
{
+ TIME_SCOPE_DURATION("ConnectionClient::finishProcess");
+
processAliveTimer.stop();
disconnectProcessFinished();