Questions tagged [kcachegrind]

Visual support for the cachegrind skin of the memory analyzer Valgrind. (For questions related to cachegrind only, use the cachegrind tag)

98 questions
9
votes
3 answers

PHP parser for cachegrind files?

Is there such a thing? I'm on windows and using the WinCacheGrind app and it doesn't seem to work with large files (~2 MB). I get errors like "cannot find call target". Do you know any parser for such files written in PHP that can help me build my…
Alex
  • 66,732
  • 177
  • 439
  • 641
8
votes
0 answers

Python profiling: KCacheGrind + Yappi keeps displaying an unknown function

I want to profile my Python program to understand why it is so slow. I decided to use Yappi - because my program is multithreaded - and to diplay the results with KCacheGrind. Here is how I do it: # Profile of the update method def…
Gaëtan
  • 779
  • 1
  • 8
  • 26
8
votes
1 answer

Python cProfile: how to filter out specific calls from the profiling data?

I've started profiling a script which has many sleep(n) statements. All in all, I get over 99% of the run time spent sleeping. Nevertheless, it occasionally runs into performance problems during the time that it does real work but the relevant,…
GJ.
  • 5,226
  • 13
  • 59
  • 82
8
votes
3 answers

Make callgrind show all function calls in the kcachegrind callgraph

I was using valgrind tool - callgrind and kcachegrind for profiling a large project and was wondering if there is a way that callgrind reports the stats from all the functions (not just the most expensive functions). To be specific - When I…
user1801733
  • 147
  • 1
  • 3
  • 11
8
votes
2 answers

Error summary in Valgrind output?

I have seen some of the post regarding valgrind but not single post helped me in understanding interpretation of valgrind output. I ran two programs with valgrind (Both having memory leaks) Sample Output for Test 1 ==20422== LEAK SUMMARY: ==20422==…
Meluha
  • 1,460
  • 3
  • 14
  • 19
8
votes
3 answers

Aggregate PHP XDebug data with KCacheGrind

Is there any way to aggregate profile data previously taken by PHP XDebug? I have managed PHP XDebug to put the data related to one request to single file. When I open that file in kcachegrind, it displays all the requests aggregated in that file.…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
7
votes
1 answer

View gprof output in kcachegrind

How to view output of gprof in kcachegrind? Is here a converter from gcc's gmon.out into callgrind.out?
osgx
  • 90,338
  • 53
  • 357
  • 513
7
votes
2 answers

Kcachegrind cycle estimation

After going to their github page and seeing some pdf manual form their kde docs site, I am still confused. Suppose there are these two lines in a test code: double a1 {asinh(1 / ep)}; // 5 instr. double b1 {log((1 + sqrt(1 +…
a concerned citizen
  • 787
  • 2
  • 9
  • 25
6
votes
1 answer

How to understand the output of callgrind using Kcachegrind

When profiling the log Kcachegrind shows %of inclusive as 13.92%. Should it not be close to 100% as mentioned in the FAQ Q:1?? Here is the screenshot of the profile log
Ashwin
  • 1,942
  • 4
  • 30
  • 59
6
votes
1 answer

Tools for analyzing cachegrind files in aggregate?

Are there any tools that can analyze a folder full of xdebug dumps in aggregate? When we enabled Xdebug profiling on our production server for short periods of time, we always end up with hundreds of files, that takes a lot of time to analyze…
Vegard Larsen
  • 12,827
  • 14
  • 59
  • 102
6
votes
2 answers

What default extension of KCachegrind

I installed KCachegrind on Ubuntu 14.10 When i click open button, i see Open dialog with default filter of file "Callgrind Profile Data" and not see my file. I must select "All files" in filter and then i see my file. What extension must have a…
vovan
  • 1,460
  • 12
  • 22
6
votes
1 answer

kcachegrind: there is no source available for the following function

I am trying to view the annotated source using $ valgrind --tool=callgrind ./myProgram followed by $ kcachegrind using Ubuntu 12.04 (and I'm having the same problem with $ qcachegrind using Mac OSX). The C++ script myProgram.cpp makes calls to…
Tom Stephens
  • 475
  • 4
  • 15
5
votes
2 answers

Which is the most reliable profiling tool gprof or kcachegrind?

Profiling some C++ number crunching code with both gprof and kcachegrind gives similar results for the functions that contribute most to the execution time (50-80% depending on input) but for functions between 10-30% both these tools give different…
Open the way
  • 26,225
  • 51
  • 142
  • 196
5
votes
3 answers

first function unknown

I am doing first steps with KCachegrind/Cachegrind. I run Cachegrind on machine A then I moved the output files on machine B where I have KCachegrind installed. I don't know why but I have always first function displayed as (unknown) and it is bad…
Abruzzo Forte e Gentile
  • 14,423
  • 28
  • 99
  • 173
5
votes
1 answer

kcachegrind having difficulties to link php xdebug calls

I'm using XDebug to generate profile repport. The profile are generated, but I'm unable to create a complete call graph using kcachegraph. The XDebug config is: zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so xdebug.profiler_enable =…
FMaz008
  • 11,161
  • 19
  • 68
  • 100