Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
78 views

I have an open source C/C++ program on Linux amd64 that processes a PDF input file and that I did not write by myself. So I'm not familiar with its code. Processing a PDF file read from local disk ...
MrSnrub's user avatar
  • 1,265
0 votes
1 answer
145 views

I'm having trouble visualizing the control flow graph in KCachegrind when analyzing my callgrind output. Although I have both dot (GraphViz) and objdump installed and working, KCachegrind fails to ...
ColrblindMartian's user avatar
1 vote
0 answers
161 views

For a school project I have to use Valgrind and other tools to help optimise a program. I'm on macOS 14.0 and using a Lima VM to run the profiling tools, but this is my first time using an environment ...
Giacomo Amaducci's user avatar
1 vote
1 answer
646 views

I'm using VS Code and particularly the "PHP" extension to open cachegrind files that I have xdebug generating. When I open the file in Qcachegrind, it shows everything correctly including ...
Jeremy M's user avatar
1 vote
0 answers
74 views

I'm trying to profile a large multi-threaded Make-based system. I recently found GNU remake and was able to use it as a drop-in replacement for gmake. Since my system is multi-threaded and also has ...
Veena's user avatar
  • 29
0 votes
0 answers
187 views

I don't understand why my Kcachegrind's output is in this form I'm compiling with $valgrind --tool=callgrind --callgrind-out-file=outputfile ./main.c $kcachegrind outputfile Can someone help me with ...
Sebastiano Mora's user avatar
0 votes
0 answers
228 views

I am using valgrind to profile a program. The valgrind measurements shows a wrong relative runtime - it seems from the callgrind log that function1 has a longer runtime than function 2, although when ...
Arik Vasserman's user avatar
0 votes
1 answer
852 views

I've been profiling some code which likely spends a lot of it's execution time in system calls. Timing some functions manually and with callgrind, callgrind reports system call times of around 20, 30 ...
GustavD's user avatar
  • 161
0 votes
0 answers
314 views

I'm profiling C++ code using callgrind and then visualizing it in kcachegrind. For example, if my program is: main() { function1(); function2(); } I would expect main() to have two edges, one ...
GustavD's user avatar
  • 161
1 vote
1 answer
478 views

I have a boost graph application where I need to call the function add_edge( ) [documentation available here]. Profiling this application with KCachegrind reveals the following breakup of time spent: ...
Tryer's user avatar
  • 4,198
0 votes
0 answers
134 views

I'm using valgrind [callgrind] to profile a C++ executable, and KCachegrind to display the results. However, the function names are all but unreadable due to endless template names before the actual ...
Francesco Dondi's user avatar
0 votes
0 answers
123 views

I am currently benchmarking a program on a Linux system with Valgrind. I have this strange cache miss with the getter method const int GetID() const, but I can't really explain where it came from. ...
RunningFlip's user avatar
8 votes
1 answer
1k views

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: # ...
Gaëtan's user avatar
  • 881
0 votes
1 answer
106 views

I am new to profiling. I am trying to profile my PHP with xdebug. The cachegrind file is created but has no significant content I have set xdebug.profiler_enable_trigger = 1 xdebug....
NormB's user avatar
  • 41
2 votes
1 answer
852 views

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, ...
Leroy's user avatar
  • 554
0 votes
1 answer
719 views

I am working on a cirrus machine, having my C code profiled. I have Valgrind installed on it. But the output I get from --tool=callgrind is barely understandable, hence I want to use kcachegrind tool. ...
Akhil Haridasan's user avatar
1 vote
1 answer
2k views

When using kcachegrind or just objdump -C -l -d somelib.so I noticed that some debug information in my shared libraries is not up to date, due to the copy process from the local file system of the ...
pseyfert's user avatar
  • 3,683
3 votes
2 answers
659 views

I run valgrind --tool=callgrind ./executable on the executable file generated by the following code: #include <cstdlib> #include <stdio.h> using namespace std; class XYZ{ public: int ...
Tryer's user avatar
  • 4,198
5 votes
1 answer
2k views

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 ...
Bhargav Upadhyay's user avatar
4 votes
1 answer
5k views

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 ...
Leonel Matias Domingos's user avatar
5 votes
2 answers
5k views

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 ...
arandomuser's user avatar
2 votes
1 answer
2k views

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 ...
danglingpointer's user avatar
6 votes
1 answer
5k views

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:...
Greg82's user avatar
  • 1,067
13 votes
4 answers
4k views

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 ...
Kenenbek Arzymatov's user avatar
0 votes
1 answer
45 views

what is the meaning of closure in KCacheGrind? I have it with one of my functions and it is pointing out the spl_autoload_register() function, spl_autoload_call in KCacheGrind. And the self time of ...
Dumb Question's user avatar
0 votes
0 answers
757 views

I have installed the xdebug , and qCachegrind, which is the windows ver of KCachegrind.. but could not see any profiling data on this interface. May be i am unable to configure it correctly. Let me ...
captain_a's user avatar
  • 3,287
1 vote
1 answer
589 views

I installed qcachegrind on OS X via brew. No problems. I generated a few *.callgrind files and viewed them with qcachegrind. Again, no problem. While viewing one file I accidentally closed the "flat ...
Chuck Remes's user avatar
7 votes
2 answers
2k views

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)}; ...
a concerned citizen's user avatar
3 votes
0 answers
377 views

I am profiling some signal processing code using callgrind / qcachegrind involving many operations on std::vector<float>. I'm getting quite a serious hotspot from the Mac OS builtin nearbyint ...
learnvst's user avatar
  • 16.3k
5 votes
1 answer
746 views

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. ...
Don Hatch's user avatar
  • 5,601
8 votes
3 answers
14k views

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 ...
user1801733's user avatar
6 votes
2 answers
3k views

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 me: ...
FrozenTarzan's user avatar
7 votes
2 answers
2k views

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 ...
vovan's user avatar
  • 1,539
9 votes
1 answer
610 views

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 ...
Abhijit's user avatar
  • 64k
10 votes
1 answer
8k views

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 ...
Bionix1441's user avatar
  • 2,359
0 votes
1 answer
91 views

I am using XDebug to profile a large MVC application and it would be much easier to profile individual requests by their URI rather than filename (.php) as several requests are made via internal ...
Ben Duffin's user avatar
  • 1,068
3 votes
1 answer
2k views

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 ...
Ole Tange's user avatar
  • 34.2k
1 vote
0 answers
298 views

My RSpec examples were running respectably until I migrated to a new Mac. Now, it seems the 1st test will take 1-3 minutes. The next time the tests are run (in a different order) that same test might ...
Meltemi's user avatar
  • 38.4k
3 votes
1 answer
2k views

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....
haelix's user avatar
  • 4,685
0 votes
0 answers
456 views

Context: I am currently investigating the performance increase between my team's current build environment, which still uses gcc-4.1.2, and a build using gcc-4.8.1. The results were astounding, with ...
Suedocode's user avatar
  • 2,554
1 vote
0 answers
560 views

I am profiling my C++ application with Valgrind's Cachegrind, using this terminal line: valgrind --branch-sim=yes --tool=cachegrind ./myProgram and from the online guides I have seen this should ...
user997112's user avatar
  • 31.1k
1 vote
0 answers
91 views

Doing some profiling I found KCacheGrind visualizing an arrow to a little grey dot. What does it mean?
techshack's user avatar
  • 459
0 votes
1 answer
1k views

Hi I am new to using this tool and I don't have much documentation on it other that what I was able to google a bit. I have a compiled c++ program that I am running callgrind on and I see the call ...
bjackfly's user avatar
  • 3,346
29 votes
1 answer
16k views

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=...
rkm's user avatar
  • 972
9 votes
1 answer
7k views

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 ...
Xara's user avatar
  • 9,188
6 votes
1 answer
5k views

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). ...
Tom Stephens's user avatar
0 votes
1 answer
187 views

I am trying to create a valgrind (cachegrind) analysis of MySQL client connections. I am running valgrind with --trace-children=yes. What I want to find is one of the internal method calls, to see ...
evenro's user avatar
  • 2,664
3 votes
2 answers
2k views

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 ...
Chloe's user avatar
  • 26.5k
1 vote
1 answer
896 views

I am having trouble examining profile data with qcachegrind on mac.I am using django-extensions to generate the profile data. I am able to open a normal profile log using cProfile in the code with ...
vasion's user avatar
  • 1,257
0 votes
1 answer
104 views

Is it possible to convert JRuby profiler graph output to valgrind format (or any other way to visualise profiling output in KCachegrind)?
samuil's user avatar
  • 5,101