tags:

views:

18

answers:

1

Hi,

I have process A wich forks process B. A and B - are different application. Both compiled with -g flag.

to run it with callgrind I use command: valgrind --tool=callgrind --trace-children=yes ./A [params]

callgrind.out.xxx for parent process (A) contains function names. for child process(B) - it doesn't contains. What could be wrong here?

Thanks

A: 

Have you tried with latest version of valgrind ?

The only current problem which seems obvious to me is:

...you will have to make sure that the output file format string (controlled by --callgrind-out-file) does contain %p (which is true by default). Otherwise, the outputs from the parent and child will overwrite each other or will be intermingled, which almost certainly is not what you want.

extracted from callgrind documentation.

Doomsday