Home > Software engineering >  Using `callgrind` to count function calls in Linux
Using `callgrind` to count function calls in Linux

Time:06-26

I am trying to track function call counts on a program I'm interested in. If I run the program on its own, it will run fine. If I try to run it with valgrind using the command seen below I seem to be getting a different result.

Command run: enter image description here

Produces this input immediately, even though the execution is normally slow. enter image description here

CodePudding user response:

valgrind has limited floating point support. You're probably using non-standard or very large floats.

CodePudding user response:

I'd say that this is more likely to be related to this issue. However to be certain you will need to tell us

  1. what compilation options are being used - specifically are you using anything related to AVX or x87?
  2. What hardware this is running on.

It would help if you can cut this down to a small example and either update this or the frexp bugzilla items.

  • Related