Questions tagged [callgrind]

Callgrind is a profiling tool that records call history among functions in a program's run as a call-graph. By default, the collected data consists of the number of instructions executed, their relationship to source lines, the caller/callee relationship between functions, and the numbers of such calls. Optionally, cache simulation and/or branch prediction (similar to Cachegrind) can produce further information about the runtime behavior of an application.

121 questions
0
votes
1 answer

Tuning the resolution in callgrind

Sorry, I can't create a minimal complete example as the problem only occurs for relatively large programs and I am not sure this is even a 'bug' per se as opposed to a misunderstanding of what callgrind profiling is supposed to accomplish. I have a…
user3684792
  • 2,542
  • 2
  • 18
  • 23
0
votes
1 answer

Analyse data dependency between functions with callgraph using vagrind

I am trying to do multithread programming for a multicore ARM processor. I use valgrind for profiling. I can see from the callgraph of function calls under main function. How to interpret the data dependency between functions? Two of my functions…
0
votes
1 answer

libhdfs throws Illegal UTF8 string in constant pool error when running through callgrind

I am trying to run one my process through callgrind. One of the child process (that I need to trace) calls into libhdfs and when running through callgrind this throws an exception: java.util.ServiceConfigurationError:…
Eqbal
  • 4,722
  • 12
  • 38
  • 47
0
votes
1 answer

Need help understanding kcachegrind

I'm trying to understand kcachegrind, there doesn't seem to be much information out there, for example, on the left window, what is "Self", What is "incl."? (see 1 core ). I've done some weak scaling tests, there is no communication, so my guess is…
datguyray
  • 131
  • 7
0
votes
2 answers

Skip code in Qt Valgrind Function Profiler

In Qt you can integrate valgrind to analyze your code. I'm using the Valgrind Function Profiler in the Analyze mode and hit the Start button. The problem is, that I have a huge startup sequence which I'm not interested in. I found defines in the…
FrozenTarzan
  • 834
  • 10
  • 30
0
votes
1 answer

What does Callgrind measure when profiling a parallel code?

I would like to profile my parallel code (both mpi and omp) I found out that Callgrind is very easy to use and analyze (using Kcachegrind) for serial code as it can give you the relative time spent on different functions. What would it give me when…
MrEtArn
  • 315
  • 2
  • 10
0
votes
0 answers

Line by line profiling of a C++ program in linux, and being able to integrate in eclipse?

We have a project, we've being testing which involves a fair amount of math (including linear algebra, massive matrix manipulation, sparse matrices, openblas, armadillo library etc) I asked this question because all related ones are really old. But…
Jim
  • 317
  • 1
  • 13
0
votes
0 answers

Callgrind high end of function instruction count

I am using callgrind to profile a piece of code and I have noticed a huge number of instructions being counted after the end of a function. Here is the output in question 4 cout << "computing cut" << endl; 8,126 => ???:global…
qazmonk
  • 9
  • 5
0
votes
0 answers

Valgrind callgrind extremely slow with C++ regex

I have an application that was strictly using Boost for regex. I upgraded to g++4.9 and switched the some, but not all, of the code over to using the built-in regex functions (straight forward change). After switching, I tried using valgrind's…
shifty_28
  • 1
  • 2
0
votes
1 answer

what is __printf_fp() and when is it called?

After using callgrind to profile my code, I see that __printf_fp() is the function with more value in the self column. What is this function and when is it called? Thank you!
Javi
  • 3,440
  • 5
  • 29
  • 43
0
votes
1 answer

Is there any infinite loops?

I have run the program without the valgrind and it just ended fine just in a minute. When I try to run in through the callgrind(valgrind --tool=callgrind), the program is never ended(at least for a six hour), and here is the top command output PID…
Vardan Hovhannisyan
  • 1,101
  • 3
  • 17
  • 40
0
votes
2 answers

Callgrind chronological log of functions called

I would like to obtain a chronological log of the functions invoked by a C++ program, preferably in a text file, using valgrind. For the example C++ program (simple.cpp) below: void baz(){ } void bar(){ for(int i = 0; i < 3; i++) …
Anirudh
  • 55
  • 1
  • 5
0
votes
1 answer

Can I rely on absolute cost of valgrind/callgrind to measure and compare different implementations?

Now I am using valgrind/callgrind to meaure and compare different algorithm implementations. Suppose there are two implementations for an algorithm, and the processing chains are as follows: void main() { //Procedure 1 fun1(); …
feelfree
  • 11,175
  • 20
  • 96
  • 167
0
votes
0 answers

Confused about profiling result

I have built my program with "-g -O2" and ran valgrind+cachegrind. I am unsure how to interpret the output. Here is the output: http://daviddoria.com/Uploads/callgrind.CacheMisses My "whole program" is the InpaintingAlgorithm function that is 98.4%…
David Doria
  • 9,873
  • 17
  • 85
  • 147
0
votes
1 answer

stopping instrumentation in callgrind

I'm spawning multiple processes and starting the instrumentation in each of them. When I try to stop the instrumentation just before the process exits, the instrumentation program seems to hang in the shell as if the process has already finished…
titus
  • 5,512
  • 7
  • 25
  • 39
1 2 3
8
9