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
3
votes
1 answer
Callgrind Profile Format inclusive/self cost
I'm trying to understand the Callgrind Profile Format. I found the online description
I thought I understood it fairly well until I encountered the 'Extended Example':
events: Instructions
fl=file1.c
fn=main
16 20
cfn=func1
calls=1 50
16 400…

Arnout Engelen
- 6,709
- 1
- 25
- 36
2
votes
2 answers
How to aggregate hotshot ( profiler ) results and view it in kcachegrind
I'm using hotshot to profile my Python program,
Is there any way to aggregated the profiles and see a total result in Kcachegrind?
After some research I used pstats to aggregate the profiles in the way given below and used pyprof2calltree to convert…

Eby
- 2,769
- 4
- 23
- 30
2
votes
3 answers
PHP Memory Debugging
For one off my projects I need to import a very huge text file ( ~ 950MB ). I'm using Symfony2 & Doctrine 2 for my project.
My problem is that I get errors like:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24…

Frido
- 77
- 1
- 2
- 8
2
votes
1 answer
Showing call tree in kcachegrind
How can I use kcachegrind to get a non-graphical tree of all my function calls, in the order they were called?
There are two typical ways to look at profiling data:
sorted by the most expensive entries
sorted in order of execution
I'm looking for…

JW.
- 50,691
- 36
- 115
- 143
2
votes
1 answer
Use different objdump in kcachegrind
Kcachegrind will use the default one objdump by default (to get asm code from ELF).
Is it possible to force Kcachegrind to use different objdump, e.g. /home/os_gx/local/bin/arm-linux/objdump?

osgx
- 90,338
- 53
- 357
- 513
2
votes
1 answer
Shorten function names in profling results with valgrind+kcachegrind
I work usually with valgrind+kcachegrind to profile C++ codes. A new code I am working with uses very long function names, so that the graphical results are a mess. I wonder how can one shorten the function names so that they fit in a small box.

Open the way
- 26,225
- 51
- 142
- 196
2
votes
1 answer
Php Kcachegrind installation workflow
Mac environment (php v5.3.3).I need to analyze xdebug profiling logs.Reading around I understood that I should use Kcachegrind.I'm following a DevZone tutorial Profiling PHP applications with Xdebug.I got stuck at two specific points:
If possible,…

luca
- 36,606
- 27
- 86
- 125
2
votes
1 answer
unable to parse .xt files made from xdebug php extension
for some reason I'm able to create the outputfile inside my /tmp directory but the files aren't readable neither from kcachegrind or wcachegrind (the windows version)
php 5.3.6
xdebug 2.1.1
the file seems correct, here are the first two lines
TRACE…

sathia
- 2,192
- 2
- 24
- 42
2
votes
1 answer
Callgrind: how to pass relative path to source code?
I'm using valgrind's callgrind to profile a program and then kcachegrind to view the profile data. I've copied callgrind's output file to a different machine and have a copy of the source code there, but apparently the path information of the source…

Leroy
- 544
- 3
- 14
2
votes
1 answer
Profiling shows more than 100% spent in function
Profiling a PHP application with Xdebug and KCacheGrind shows over 150% than (inclusive) spent in some functions. The app uses Smarty 3 and the strange functions are always in calls related to template processing. There are lots of loops in that…

Tgr
- 27,442
- 12
- 81
- 118
2
votes
1 answer
valgrind doesnt work on my 32bit executable in linux ubuntu 16.04
I'm trying to run the valgrind tool on my 32bit executable(sample), I built under the linux Ubuntu host 16.04(64bit), but it failed to run, error: wrong ELF.
sample application is built to run in arm32, cross-compiled in my host linux machine.
This…

danglingpointer
- 4,708
- 3
- 24
- 42
2
votes
0 answers
Meaning of the grey dot in KCacheGrind
Doing some profiling I found KCacheGrind visualizing an arrow to a little grey dot. What does it mean?

techshack
- 359
- 2
- 18
2
votes
2 answers
kcachegrind for RHEL 5.1
I'm about to perform profiling to application. I have vagrind, but kcachegrind is not installed.
Tryied to compile without success.
Where it can be obtained from for RHEL 5.1?

dimba
- 26,717
- 34
- 141
- 196
2
votes
3 answers
CakePHP Pages Slow To Load Due To php::session_start
I found that pages in my CakePHP application that do not call the database take about 4 seconds to load, which is way too slow.
I tried the following things to no avail:
Rebooting the computer
Reinstalling Uniserver
Toggling the debug level from 2…

Zian Choy
- 2,846
- 6
- 33
- 64
2
votes
1 answer
Xdebug + KcacheGrind output graph shows percentages higher than 100%
I'm using kcacheGrind to visualize debug output of a symfony application which was saved by xdebug. I'm referring the "Call Graph" to see the execution graph and its times.
I have set the following options in kCacheGrind as follows.
%Relative -…

Thilanka
- 1,733
- 5
- 21
- 36