forked from qt-creator/qt-creator
Valgrind: Inline ValgrindToolRunner::executable
Change-Id: Ia714a5a322ae56b07360871f584ec6f9f1babb5b Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
|
||||
#include "callgrindengine.h"
|
||||
|
||||
#include "callgrindtool.h"
|
||||
#include "valgrindsettings.h"
|
||||
|
||||
#include <valgrind/callgrind/callgrindcontroller.h>
|
||||
@@ -105,7 +104,7 @@ QStringList CallgrindToolRunner::toolArguments() const
|
||||
|
||||
arguments << "--callgrind-out-file=" + m_valgrindOutputFile.path();
|
||||
|
||||
arguments << Utils::ProcessArgs::splitArgs(m_settings.callgrindArguments.value());
|
||||
arguments << ProcessArgs::splitArgs(m_settings.callgrindArguments.value());
|
||||
|
||||
return arguments;
|
||||
}
|
||||
@@ -117,7 +116,8 @@ QString CallgrindToolRunner::progressTitle() const
|
||||
|
||||
void CallgrindToolRunner::start()
|
||||
{
|
||||
appendMessage(tr("Profiling %1").arg(executable().toUserOutput()), Utils::NormalMessageFormat);
|
||||
const FilePath executable = runControl()->commandLine().executable();
|
||||
appendMessage(tr("Profiling %1").arg(executable.toUserOutput()), NormalMessageFormat);
|
||||
return ValgrindToolRunner::start();
|
||||
}
|
||||
|
||||
|
||||
@@ -1008,7 +1008,7 @@ void MemcheckToolPrivate::setupRunner(MemcheckToolRunner *runTool)
|
||||
m_loadExternalLogFile->setDisabled(true);
|
||||
|
||||
const FilePath dir = runControl->project()->projectDirectory();
|
||||
const QString name = runTool->executable().fileName();
|
||||
const QString name = runControl->commandLine().executable().fileName();
|
||||
|
||||
m_errorView->setDefaultSuppressionFile(dir.pathAppended(name + ".supp"));
|
||||
|
||||
|
||||
@@ -122,11 +122,6 @@ void ValgrindToolRunner::stop()
|
||||
m_runner.stop();
|
||||
}
|
||||
|
||||
FilePath ValgrindToolRunner::executable() const
|
||||
{
|
||||
return runControl()->commandLine().executable();
|
||||
}
|
||||
|
||||
QStringList ValgrindToolRunner::genericToolArguments() const
|
||||
{
|
||||
QString smcCheckValue;
|
||||
|
||||
@@ -47,8 +47,6 @@ public:
|
||||
void start() override;
|
||||
void stop() override;
|
||||
|
||||
Utils::FilePath executable() const;
|
||||
|
||||
protected:
|
||||
virtual QString progressTitle() const = 0;
|
||||
virtual QStringList toolArguments() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user