forked from qt-creator/qt-creator
CMakePM: Add CMake Profiler action
Change-Id: I17f258834724c37f0933d18b6214851be1965913 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -201,7 +201,8 @@ void CMakeBuildSystem::triggerParsing()
|
||||
m_reader.parse(reparseParameters & REPARSE_FORCE_CMAKE_RUN,
|
||||
reparseParameters & REPARSE_FORCE_INITIAL_CONFIGURATION,
|
||||
reparseParameters & REPARSE_FORCE_EXTRA_CONFIGURATION,
|
||||
(reparseParameters & REPARSE_DEBUG) && isDebuggable);
|
||||
(reparseParameters & REPARSE_DEBUG) && isDebuggable,
|
||||
reparseParameters & REPARSE_PROFILING);
|
||||
}
|
||||
|
||||
void CMakeBuildSystem::requestDebugging()
|
||||
@@ -806,6 +807,13 @@ void CMakeBuildSystem::runCMakeWithExtraArguments()
|
||||
reparse(REPARSE_FORCE_CMAKE_RUN | REPARSE_FORCE_EXTRA_CONFIGURATION | REPARSE_URGENT);
|
||||
}
|
||||
|
||||
void CMakeBuildSystem::runCMakeWithProfiling()
|
||||
{
|
||||
qCDebug(cmakeBuildSystemLog) << "Requesting parse due \"CMake Profiler\" command";
|
||||
reparse(REPARSE_FORCE_CMAKE_RUN | REPARSE_URGENT | REPARSE_FORCE_EXTRA_CONFIGURATION
|
||||
| REPARSE_PROFILING);
|
||||
}
|
||||
|
||||
void CMakeBuildSystem::stopCMakeRun()
|
||||
{
|
||||
qCDebug(cmakeBuildSystemLog) << buildConfiguration()->displayName()
|
||||
|
||||
Reference in New Issue
Block a user