diff --git a/doc/src/analyze/creator-valgrind.qdoc b/doc/src/analyze/creator-valgrind.qdoc index f3f716e595e..a25fbdbfd4c 100644 --- a/doc/src/analyze/creator-valgrind.qdoc +++ b/doc/src/analyze/creator-valgrind.qdoc @@ -129,8 +129,8 @@ After you download and install Valgrind tools, you can use Callgrind from \QC. - \note Callgrind is supported locally on Linux and Mac OS. You can run it on - a remote host from Windows. + \note Callgrind is supported locally on Linux and Mac OS. You can run + it on a remote Linux machine or device from any development machine. To analyze applications: @@ -166,6 +166,21 @@ the \gui Callers view and about the called functions in the \gui Callees view. + Since Debug and Release mode run-time characteristics differ + significantly, analytical findings for one mode may or not be + relevant for the other. Profiling a Debug mode build + often finds a major part of the time being spent in low-level + code like container implementations, while the same code + does not show up in the profile of a Release build of the + same application due to inlining and other optimizations + typically done there. + + Many recent compilers allow you to build an optimized application + with debug information present at the same time. Typical + options for GCC are for instance \c{-g -O2}. It is + advisable to use such a setup for Callgrind profiling. + + \image qtcreator-valgrind-callgrind.png "Profile view" \section1 Selecting Profiling Options diff --git a/src/plugins/analyzerbase/analyzermanager.cpp b/src/plugins/analyzerbase/analyzermanager.cpp index 2761c8e3aa7..500e233e044 100644 --- a/src/plugins/analyzerbase/analyzermanager.cpp +++ b/src/plugins/analyzerbase/analyzermanager.cpp @@ -515,7 +515,10 @@ void AnalyzerManagerPrivate::startLocalTool(IAnalyzerTool *tool) const QString message = tr("
You are trying " "to run the tool \"%1\" on an application in %2 mode. " "The tool is designed to be used in %3 mode.
" - "Do you want to continue and run it in %2 mode?
") + "Debug and Release mode run-time characteristics differ " + "significantly, analytical findings for one mode may or " + "may not be relevant for the other." + "Do you want to continue and run the tool in %2 mode?