Using KCachegrind
Complete:
Goal of the page
This page is intended to provide a short introduction to the
kcachegrind tool and its usage to analyze the performance of CMS offline code
Contacts
Vincenzo Innocente
Robin Moser
Introduction
KCachegrind
is s a visualization tool for the profiling data generated by Cachegrind and Callgrind (they profile data file format is upwards compatible). But as most visualization possibilities of KCachegrind depend on call relationships, you get much more out of it if your are using Callgrind as profile tool.
KCachegrind can also be used to visualize the results of other profiling tools if a converter to the callgrind format is provided.
This is the case for both OProfile and
CMS.IgProf.
Usage
KCachegrind is part of the KDE distribution and therefore available on most of the Linux distributions. Versions for other operating systems such as MacOS are also available.
CMS distributes its own version of KCachegrind. We recommend therefore to use the version made available in the CMSSW runtime environment.
To start KCachegrind just type
kcachegrind&
in a shell initialized with the CMSSW runtime environment. KCachegrind is available in SLC4 as part of the
kdesdk
package.
Documentation
Please refer to the
official documentation
available on the web or with the KDE distribution.
Examples
For more example and a tutorial on how to use KCachegrind with cms offline software please refer to the
workbook.
Review status
Responsible:
VincenzoInnocente
Last reviewed by: Most recent reviewer