Visual support for the cachegrind skin of the memory analyzer Valgrind. (For questions related to cachegrind only, use the cachegrind tag)
Questions tagged [kcachegrind]
98 questions
56
votes
5 answers
Using cProfile results with KCacheGrind
I'm using cProfile to profile my Python program. Based upon this talk I was under the impression that KCacheGrind could parse and display the output from cProfile.
However, when I go to import the file, KCacheGrind just displays an 'Unknown File…

Adam Luchjenbroers
- 4,917
- 2
- 30
- 35
55
votes
2 answers
What is "" an indication of in Xdebug?
I have an xdebug profile on a php script that I parsed with kcachegrind. Here is a screenshot showing that the most time spent inside any given function was spent inside and the top 'Callers' were made from 'include' and 'include_once' in…

Derek Downey
- 1,512
- 2
- 10
- 16
41
votes
2 answers
KCachegrind interpretation confusion
I am trying to understand the values shown in Kcachegrind in the left panel
I have Incl. (which I read in the manual is inclusive), Self, Called an Function
Now I am analyzing this cachegrind file and I have
Incl. ---- Self ---- Called ----…

AntonioCS
- 8,335
- 18
- 63
- 92
26
votes
7 answers
Is there any KCacheGrind alternative for Mac Os X outta there?
I'm looking for a KCacheGrind alternative, or at least a binary package for Mac Os X?
I'd to use KCacheGrind with XDebug for PHP, but Mac Os X is the right environnement here...
Thank you
Edit: I know I can use MacPort but I'm looking for an…

IgorS
- 269
- 1
- 3
- 3
25
votes
1 answer
How to interpret results from kcachegrind
Could anyone tell me how to interest the results from kcachegrind.
I had two versions of my code (v1, v2) both compiled in debug mode. I ran them through valgrind with options:
valgrind --tool=callgrind -v ....
The output files thus generated are…

rkm
- 892
- 2
- 16
- 32
21
votes
1 answer
Is there a tool to examine the difference of two callgrind/valgrind profiles?
I'm trying to understand how a program's performance changes when run with different options—I have a factor of 1.8 I'd like to explain. I've been doing profiling with [valgrind]'s callgrind tool and using kcachegrind to visualize the results.
But…

Norman Ramsey
- 198,648
- 61
- 360
- 533
21
votes
5 answers
Console alternative of kcachegrind?
Kcachegrind rocks and it's of my favorite tools, however from time to time I'm missing the ability to run it in terminal(e.g using ssh) on the remote server.
I know it's possible to setup VNC or X-server forwarding but it's quite clumsy while I…

pachanga
- 3,003
- 4
- 30
- 45
19
votes
1 answer
Why doesn't kcachegrind display the call graph?
I am trying to get some information about the flow of a large program. KCachegrind used to be great for this in the past. But the latest version (0.6kde) I have on my system (Kubuntu 10.10) won't display the call tree and caller map. It only draws a…

Cos64
- 1,617
- 2
- 19
- 30
13
votes
4 answers
Kcachegrind. Show only functions from my code
I want to profile my code. So I do:
valgrind --tool=callgrind my_program [programm arguments]
kcachegrind callgrind.out.x
Now I have kcachegrind window like this:
There is a lot of core and library functions, but how can I set up valgrind or…

Kenenbek Arzymatov
- 8,439
- 19
- 58
- 109
12
votes
1 answer
PHP xDebug graph interpretation
I am profiling a PHP application (built upon the Zend framework). Attached you can find a screenshot of the main call graph that KCacheGrind produces from xDebug output.
There are two things that I don't understand:
1) Why does {main} "fork" into 2…

thwd
- 23,956
- 8
- 74
- 108
11
votes
1 answer
What are the column names in wincachegrind?
With lots of efforts and tutorials I got xdebug/wincachegrind up and running but most tutorials end with "Now everythings working, enjoy".
Everythings working, but I don't get the column naming in the stats:
what means Avg. Self (Average…

shredding
- 5,374
- 3
- 46
- 77
10
votes
1 answer
How to interpret Kcachegrind graphs?
I have started using Kcachegrind for performance analysis. But I don't understand the GUI and the output graphs.
For example for this call graph
SignatureIterator::iterate_parameters() I don't understand what is the 9.25% referring to ?
the 5 198x…

Bionix1441
- 2,135
- 1
- 30
- 65
10
votes
2 answers
Using callgrind/kcachegrind to get per-thread statistics
I'd like to be able to see how "expensive" each thread in my application is using callgrind. I profiled with the --separate-thread=yes option which gives you a callgrind file for the whole app and then one per-thread.
This is useful for viewing…

Paul D.
- 1,785
- 2
- 19
- 25
9
votes
1 answer
How to source annotate python when using qcachegrind to process profilestats output
Kcachegrind serves as a wonderful utility to visually represent the hotspot to the source line level when profiling code. I found it pretty useful when micro optimizing my C++ code base.
For my latest python project I started using Kcachegrind to…

Abhijit
- 62,056
- 18
- 131
- 204
9
votes
1 answer
KCachegrind: command not found
I installed valgrind on Centos using this command:
yum install valgrind kcachegrind graphviz
I then used the callgrind tool for my c++ program. It generated its callgrind.out.42424 file.
Now, I want to open this file on KCacheGrind using this…

Xara
- 8,748
- 16
- 52
- 82