Sequential Performance Analysis with Callgrind and KCachegrind

  • Josef WeidendorferEmail author


This chapter presents the suite of tools Callgrind and KCachegrind. The first is an execution driven cache simulator, which outputs profile information on cache events, as well as the dynamic call graph of the execution, attributed with call counts and inclusive costs. KCachegrind is a visualization tool tailored at browsing the results gathered by Callgrind. After some introduction to sequential performance analysis and related tools, the tool suite is presented, followed by typical use cases. Finally, future developments are discussed.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
  2. 2.
    DeRose, L., Ekanadham, K., Hollingsworth, J.K., Sbaraglia, S.: SIGMA: A Simulator Infrastructure to Guide Memory Analysis. In: Proceedings of SC 2002. Baltimore, MD (2002) Google Scholar
  3. 3.
    Graham, S., Kessler, P., McKusick, M.: GProf: A Call Graph Execution Profiler. In: SIGPLAN: Symposium on Compiler Construction, pp. 120–126 (1982) Google Scholar
  4. 4.
  5. 5.
    Knuth, D.: Structured Programming with go to Statements. ACM Journal Computing Surveys 6(4), 268 (1974) MathSciNetGoogle Scholar
  6. 6.
    Levon, J.: OProfile, a system-wide profiler for Linux systems.
  7. 7.
    Nethercote, N., Seward, J.: Valgrind: A Framework for Heavyweight Dynamic Binary Instrumentation. In: ACM SIGPLAN 2007 Conference on Programming Language Design and Implementation (PLDI 2007). San Diego, California, USA (2007) Google Scholar
  8. 8.
    Sun: Sun Studio 11: Performance Analyzer, Reference Manual (2005).
  9. 9.
    Tao, J., Schulz, M., Karl, W.: A Simulation Tool for Evaluating Shared Memory Systems. In: Proceedings of the 36th ACM Annual Simulation Symposium, pp. 335–342. Orlando, Florida (2003) Google Scholar
  10. 10.
    Weidendorfer, J., Kowarschik, M., Trinitis, C.: A Tool Suite for Simulation Based Analysis of Memory Access Behavior. In: ICCS 2004: 4th International Conference on Computational Science, LNCS, vol. 3038, pp. 440–447. Springer (2004) Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  1. 1.Department of InformaticsTechnische Universität MünchenGarching b. MünchenGermany

Personalised recommendations