1

I want to use valrgind at a specific time while my program is running. For example, when I use -O3 it will take 0.5 hours to reach the desired point. When I use -g -ggdb it will take nearly 2.5 hours to reach the desired point.

Now if I use valgrind with -g -ggdb, the program is extremely slow and I can not predict when it reach the desired point.

What should I do?

mahmood
  • 23,197
  • 49
  • 147
  • 242
  • You can use -O3 and -g both. If you want Valgrind starts to check memory problems at your desired point, how do you ensure those problematic memory are not allocated/freed before reaching at this point? – jclin Aug 27 '13 at 08:42

0 Answers0