forked from qt-creator/qt-creator
PerfProfiler: Be more verbose when running perf
If perf cannot be started for whatever reasons it is quite hard to figure out its reason. Add a note how perf is started and give some hint on the application output pane as the message box points the user to it. Task-number: QTCREATORBUG-28462 Change-Id: I4d386078f6e3719fefc9b3dc7d77fffbdb294030 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -115,6 +115,8 @@ public:
|
|||||||
reportFailure(msg);
|
reportFailure(msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!m_process->cleanedStdErr().isEmpty())
|
||||||
|
appendMessage(m_process->cleanedStdErr(), Utils::StdErrFormat);
|
||||||
reportStopped();
|
reportStopped();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -125,6 +127,7 @@ public:
|
|||||||
|
|
||||||
m_process->setCommand(cmd);
|
m_process->setCommand(cmd);
|
||||||
m_process->setWorkingDirectory(runControl()->workingDirectory());
|
m_process->setWorkingDirectory(runControl()->workingDirectory());
|
||||||
|
appendMessage("Starting Perf: " + cmd.toUserOutput(), Utils::NormalMessageFormat);
|
||||||
m_process->start();
|
m_process->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user