|
From: Benjamin O. <in...@pu...> - 2004-04-03 14:59:18
|
Hi people, I'm looking for a way to detect if my app is running inside valgrind, so I can disable certain mempooling optimizations that make detecting leaks hard. Is this possible? Thx, Benjamin |
|
From: Tom H. <th...@cy...> - 2004-04-03 15:06:33
|
In message <Pin...@pu...>
Benjamin Otte <in...@pu...> wrote:
> I'm looking for a way to detect if my app is running inside valgrind, so I
> can disable certain mempooling optimizations that make detecting leaks
> hard.
#include <valgrind/valgrind.h>
if ( RUNNING_ON_VALGRIND )
{
...
}
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|