From: Nicholas N. <nj...@ca...> - 2003-05-28 07:53:07
|
On Tue, 27 May 2003, Alex Ivershen wrote: > I have an application that spawns quite a few children processes. By default, Valgrind does not trace child processes. This means that if you Valgrind a script, Valgrind will check the script interpreter, eg. Perl or Bash or whatever, but not any child processes exec'd by the script. But if you specify --trace-children=yes, it does trace children. But if you must Valgrind only one of the children, this won't be precise enough. > if ( valgrind switch is set ) #include memcheck.h, and use the RUNNING_ON_VALGRIND macro to do this check. HTH N |