diff options
Diffstat (limited to 'src/plugins/valgrind/callgrindengine.cpp')
-rw-r--r-- | src/plugins/valgrind/callgrindengine.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/plugins/valgrind/callgrindengine.cpp b/src/plugins/valgrind/callgrindengine.cpp index c8b10cd416..ec886c7dfe 100644 --- a/src/plugins/valgrind/callgrindengine.cpp +++ b/src/plugins/valgrind/callgrindengine.cpp @@ -42,9 +42,9 @@ using namespace Analyzer; using namespace Valgrind; using namespace Valgrind::Internal; -CallgrindEngine::CallgrindEngine(const AnalyzerStartParameters &sp, +CallgrindRunControl::CallgrindRunControl(const AnalyzerStartParameters &sp, ProjectExplorer::RunConfiguration *runConfiguration) - : ValgrindEngine(sp, runConfiguration) + : ValgrindRunControl(sp, runConfiguration) , m_markAsPaused(false) { connect(&m_runner, SIGNAL(finished()), this, SLOT(slotFinished())); @@ -55,12 +55,12 @@ CallgrindEngine::CallgrindEngine(const AnalyzerStartParameters &sp, m_progress->setProgressRange(0, 2); } -void CallgrindEngine::showStatusMessage(const QString &msg) +void CallgrindRunControl::showStatusMessage(const QString &msg) { AnalyzerManager::showStatusMessage(msg); } -QStringList CallgrindEngine::toolArguments() const +QStringList CallgrindRunControl::toolArguments() const { QStringList arguments; @@ -89,28 +89,28 @@ QStringList CallgrindEngine::toolArguments() const return arguments; } -QString CallgrindEngine::progressTitle() const +QString CallgrindRunControl::progressTitle() const { return tr("Profiling"); } -Valgrind::ValgrindRunner * CallgrindEngine::runner() +Valgrind::ValgrindRunner * CallgrindRunControl::runner() { return &m_runner; } -bool CallgrindEngine::start() +bool CallgrindRunControl::startEngine() { - emit outputReceived(tr("Profiling %1\n").arg(executable()), Utils::NormalMessageFormat); - return ValgrindEngine::start(); + appendMessage(tr("Profiling %1\n").arg(executable()), Utils::NormalMessageFormat); + return ValgrindRunControl::startEngine(); } -void CallgrindEngine::dump() +void CallgrindRunControl::dump() { m_runner.controller()->run(Valgrind::Callgrind::CallgrindController::Dump); } -void CallgrindEngine::setPaused(bool paused) +void CallgrindRunControl::setPaused(bool paused) { if (m_markAsPaused == paused) return; @@ -126,7 +126,7 @@ void CallgrindEngine::setPaused(bool paused) } } -void CallgrindEngine::setToggleCollectFunction(const QString &toggleCollectFunction) +void CallgrindRunControl::setToggleCollectFunction(const QString &toggleCollectFunction) { if (toggleCollectFunction.isEmpty()) return; @@ -134,32 +134,32 @@ void CallgrindEngine::setToggleCollectFunction(const QString &toggleCollectFunct m_argumentForToggleCollect = QLatin1String("--toggle-collect=") + toggleCollectFunction; } -void CallgrindEngine::reset() +void CallgrindRunControl::reset() { m_runner.controller()->run(Valgrind::Callgrind::CallgrindController::ResetEventCounters); } -void CallgrindEngine::pause() +void CallgrindRunControl::pause() { m_runner.controller()->run(Valgrind::Callgrind::CallgrindController::Pause); } -void CallgrindEngine::unpause() +void CallgrindRunControl::unpause() { m_runner.controller()->run(Valgrind::Callgrind::CallgrindController::UnPause); } -Valgrind::Callgrind::ParseData *CallgrindEngine::takeParserData() +Valgrind::Callgrind::ParseData *CallgrindRunControl::takeParserData() { return m_runner.parser()->takeData(); } -void CallgrindEngine::slotFinished() +void CallgrindRunControl::slotFinished() { emit parserDataReady(this); } -void CallgrindEngine::slotStarted() +void CallgrindRunControl::slotStarted() { m_progress->setProgressValue(1);; } |