Support for running under valgrind memcheck - the only valgrind tool Stroika supports (see Documentation/Debugging.md) More...
#include "Stroika/Foundation/StroikaPreComp.h"#include "Valgrind.inl"Go to the source code of this file.
Functions | |
| bool | IsRunningUnderValgrind () |
Support for running under valgrind memcheck - the only valgrind tool Stroika supports (see Documentation/Debugging.md)
Memcheck needs nothing from here to work. This provides IsRunningUnderValgrind (), and - when configured with –valgrind enable, which defines qStroika_FeatureSupported_Valgrind - memcheck's client requests (<valgrind/memcheck.h>). It includes nothing else, so it is cheap to include anywhere.
TODO:
Definition in file Valgrind.h.
| bool IsRunningUnderValgrind | ( | ) |
Use IsRunningUnderValgrind () to test if we are running under valgrind. This often uses MUCH more memory and runs much slower (details depend on if running under memcheck or which we blurr, so this isn't perfect).