Valgrind: Aspectify settings

Change-Id: I2fbf8244a05ffb1b642843c6471f92e2b154cf8a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-02-18 14:18:34 +01:00
parent 8cfc053c2d
commit 0e2445bc54
13 changed files with 396 additions and 1309 deletions

View File

@@ -78,16 +78,16 @@ QStringList CallgrindToolRunner::toolArguments() const
{
QStringList arguments = {"--tool=callgrind"};
if (m_settings.enableCacheSim())
if (m_settings.enableCacheSim.value())
arguments << "--cache-sim=yes";
if (m_settings.enableBranchSim())
if (m_settings.enableBranchSim.value())
arguments << "--branch-sim=yes";
if (m_settings.collectBusEvents())
if (m_settings.collectBusEvents.value())
arguments << "--collect-bus=yes";
if (m_settings.collectSystime())
if (m_settings.collectSystime.value())
arguments << "--collect-systime=yes";
if (m_markAsPaused)
@@ -97,7 +97,7 @@ QStringList CallgrindToolRunner::toolArguments() const
if (!m_argumentForToggleCollect.isEmpty())
arguments << m_argumentForToggleCollect;
arguments << Utils::QtcProcess::splitArgs(m_settings.callgrindArguments());
arguments << Utils::QtcProcess::splitArgs(m_settings.callgrindArguments.value());
return arguments;
}