forked from qt-creator/qt-creator
Utils: Count processes when qtc.utils.qtcprocess is enabled
Change-Id: I69748c751fe41bdddd73a9ad396e722ebccb7a54 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -71,7 +71,7 @@ enum { syncDebug = 0 };
|
||||
|
||||
enum { defaultMaxHangTimerCount = 10 };
|
||||
|
||||
static Q_LOGGING_CATEGORY(processLog, "qtc.utils.synchronousprocess", QtWarningMsg);
|
||||
static Q_LOGGING_CATEGORY(processLog, "qtc.utils.qtcprocess", QtWarningMsg)
|
||||
|
||||
static DeviceProcessHooks s_deviceHooks;
|
||||
|
||||
@@ -325,6 +325,11 @@ void QtcProcess::start()
|
||||
return;
|
||||
}
|
||||
|
||||
if (processLog().isDebugEnabled()) {
|
||||
static int n = 0;
|
||||
qCDebug(processLog) << "STARTING PROCESS: " << ++n << " " << d->m_commandLine.toUserOutput();
|
||||
}
|
||||
|
||||
Environment env;
|
||||
const OsType osType = HostOsInfo::hostOs();
|
||||
if (d->m_haveEnv) {
|
||||
|
Reference in New Issue
Block a user