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:
hjk
2021-06-15 13:27:09 +02:00
parent 843999d578
commit 943447aed3

View File

@@ -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) {