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
5
votes
1 answer

What is the meaning of function in the output of cProfile analyzed using KchacheGrind?

I want to analyze the performance of the python code, I have used cProfile module for that and generated the .cprof file as mentioned in the python documentation. I am using pyprof2calltree python module to open the .cprof file into KCacheGrind. . I…
Bhargav Upadhyay
  • 545
  • 5
  • 12
5
votes
1 answer

kcachegrind unable to open callgrind file

I'm using callgrind to profile a small piece of code. Callgrind output files are well generated, their content looks ok, but I'm unable to open them with kcachegrind: I get the following error message: Could not open file "callgrind.out.4953".…
Greg82
  • 1,000
  • 3
  • 10
  • 24
5
votes
2 answers

How to use KCachegrind and Callgrind to measure only parts of my code?

I want to use valgrind to analyze my code. The problem is, that I have a huge startup sequence which I'm not interested in. I found defines in the valgrind/callgrind.h that should help…
FrozenTarzan
  • 834
  • 10
  • 30
4
votes
1 answer

Kcachegrind/callgrind is inaccurate for dispatcher functions?

I have a model code on which kcachegrind/callgrind reports strange results. It is kind of dispatcher function. The dispatcher is called from 4 places; each call says, which actual do_J function to run (so the first2 will call only do_1 and do_2 and…
osgx
  • 90,338
  • 53
  • 357
  • 513
4
votes
1 answer

Kcachegrind override list item limit of 499

Currently, I can't get my kcachegrind instance to display more than 499 list items. This leaves me with an incomplete Call Graph. Is there a way to not skip functions?
Brad
  • 41
  • 3
4
votes
1 answer

Xdebug profiler output file

X debug is returning output as parts instead of just one file. I am using ubuntu 16 and don't know why suddenly the output is in several files. The problem that i have is that i cannot open this files in Kcachegrind as the output have different…
Leonel Matias Domingos
  • 1,922
  • 5
  • 29
  • 53
4
votes
1 answer

How do I get back to the beginning in kcachegrind?

Sometimes I run kcachegrind, click around awhile, hit the little 'x' that closes the left panel (oops! no idea how to get it back), click around some more, get totally lost, then exit kcachegrind. Then I later re-run kcachegrind again on the same…
Don Hatch
  • 5,041
  • 3
  • 31
  • 48
3
votes
2 answers

KCachegrind output for optimized vs unoptimized builds

I run valgrind --tool=callgrind ./executable on the executable file generated by the following code: #include #include using namespace std; class XYZ{ public: int Count() const {return count;} void Count(int val){count =…
Tryer
  • 3,580
  • 1
  • 26
  • 49
3
votes
2 answers

Callgrind performance analysis with cycle detection

I'm trying to use Callgrind/Kcachegrind for the first time to profile my C++ application and what I noticed is that the two functions that take more time are: < cycle 1 > (50% self) and do_lookup_x (15% self) Now, from my understanding cycle 1 is…
arandomuser
  • 521
  • 1
  • 7
  • 22
3
votes
1 answer

Cachegrind output interpretation

This is part of cachegrind output. This part of code has been executed for 1224 times. elmg1 is an array of unsigned long of size 16 x 20. My machine L1 cache size is 32KB, 64B cache line size and 8-way set associative. for (i = 0; i < 20; i++) …
anup
  • 529
  • 5
  • 14
3
votes
0 answers

C++ profiling reveals vector hotspot. How to optimize?

I am profiling some signal processing code using callgrind / qcachegrind involving many operations on std::vector. I'm getting quite a serious hotspot from the Mac OS builtin nearbyint function. This seems to be called almost entirely by…
learnvst
  • 15,455
  • 16
  • 74
  • 121
3
votes
1 answer

kcachegrind: How to draw the full call graph?

I like kcachegrind's call graph. But I have been unable to make it graph the full call graph. I would imagine I just had to set: Graph > Caller Depth > Unlimited Graph > Callee Depth > Unlimited Graph > Min. Node Cost > No Minimum Graph > Min. Call…
Ole Tange
  • 31,768
  • 5
  • 86
  • 104
3
votes
1 answer

Need help in understanding kcachedgrind output

I am using valgrind callgrind to profile a program on gtk. And then I use kcachedgrind to read the result. I have captured an update a screenshot of kcachedgrind here: http://i41.tinypic.com/168spk0.jpg. It said the function gtk_moz_embed_new()…
hap497
  • 154,439
  • 43
  • 83
  • 99
3
votes
1 answer

C++ profiling: clock cycle count

I'm using valgrind --tool=callgrind to profile a critical part of my C++ program. The part itself takes less that a microsecond to execute so I'm profiling over a large number of loops over that part. I noticed that instructions take multiples of…
haelix
  • 4,245
  • 4
  • 34
  • 56
3
votes
2 answers

How do you output call tree profiling for KCacheGrind with ruby-prof for a Rails app?

According to the documentation, you can profile Rails apps http://ruby-prof.rubyforge.org/ I added this to my config.ru if Rails.env.development? use Rack::RubyProf, :path => 'tmp/profile' end However it only outputs the following…
Chloe
  • 25,162
  • 40
  • 190
  • 357