Doc: Describe launching KCachegrind from Qt Creator

...for profile data visualization.

Change-Id: I878ab4a3dfff0fc43903e482603a516514e79c10
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Leena Miettinen
2019-04-05 17:01:55 +02:00
committed by hjk
parent c9cdd1f83b
commit 6ee855a2bc
5 changed files with 19 additions and 7 deletions

View File

@@ -20,7 +20,8 @@ imagedirs = ../images \
../../src/plugins/qmldesigner/components/formeditor \
../../src/plugins/qmldesigner/components/navigator \
../../src/plugins/scxmleditor/common/images \
../../src/plugins/texteditor/images
../../src/plugins/texteditor/images \
../../src/plugins/valgrind/images
exampledirs = ../examples
examples.fileextensions += *.qml *.svg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2018 The Qt Company Ltd.
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Creator documentation.
@@ -149,13 +149,17 @@
You can use the Callgrind tool included in the
\l{http://valgrind.org/info/tools.html}{Valgrind tool suite} to detect
problems that are related to executing functions.
problems that are related to executing functions. In addition, you
can load the data files generated by Callgrind into the
\l{https://kcachegrind.github.io/html/Home.html}{KCachegrind}
profile data visualization tool for browsing the performance results.
After you download and install Valgrind tools, you can use Callgrind from
\QC.
After you download and install Valgrind tools and KCachegrind, you can use
Callgrind and KCachegrind from \QC.
\note You can install and run Callgrind locally on Linux. You can run
it on a remote Linux machine or device from any development machine.
\note You can install and run Callgrind and KCachegrind locally on Linux.
You can run Callgrind on a remote Linux machine or device from any
development machine.
To analyze applications:
@@ -207,6 +211,10 @@
\image qtcreator-valgrind-callgrind.png "Profile view"
To view the data in KCachegrind, select the \inlineimage kcachegrind.png
(\uicontrol {Open Results in KCachegrind}) button on the toolbar. \QC
launches KCachegrind and loads the data into it for visualization.
\section1 Selecting Profiling Options
You can specify analyzer settings either globally for all projects or
@@ -218,6 +226,9 @@
\image qtcreator-valgrind-callgrind-options.png "Valgrind options"
In the \uicontrol {KCachegrind executable} field, enter the path to the
KCachegrind executable to launch.
In the \uicontrol {Result view: Minimum event cost}
field, limit the amount of results the profiler gives you to increase
profiler performance.