QmlProfiler: Properly prepare the file finder on every start

We want to examine the current list of projects, also if we don't have a
specific runConfiguration. Also, after repopulating the file finder, we
need to clear the cache of file mappings, as they might have changed.

Change-Id: I351789fe999009d443ca5ade9b365bfd490e0e23
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2017-08-14 14:40:20 +02:00
parent 6a626595dc
commit dc912be7ea
2 changed files with 2 additions and 3 deletions

View File

@@ -256,6 +256,7 @@ void QmlProfilerDetailsRewriter::populateFileFinder(
m_projectFinder.setProjectDirectory(projectDirectory); m_projectFinder.setProjectDirectory(projectDirectory);
m_projectFinder.setProjectFiles(sourceFiles); m_projectFinder.setProjectFiles(sourceFiles);
m_projectFinder.setSysroot(activeSysroot); m_projectFinder.setSysroot(activeSysroot);
m_filesCache.clear();
} }
} // namespace Internal } // namespace Internal

View File

@@ -393,9 +393,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker)
// Initialize m_projectFinder // Initialize m_projectFinder
// //
if (runConfiguration) {
d->m_profilerModelManager->populateFileFinder(runConfiguration); d->m_profilerModelManager->populateFileFinder(runConfiguration);
}
} }
void QmlProfilerTool::recordingButtonChanged(bool recording) void QmlProfilerTool::recordingButtonChanged(bool recording)