Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Valgrind.h File Reference

Include this file VERY EARLY ON - before including stuff like <cstdio> - to allow use of Valgrind (some features) More...

#include "Stroika/Foundation/StroikaPreComp.h"
#include "Valgrind.inl"

Go to the source code of this file.

Functions

bool IsRunningUnderValgrind ()
 

Detailed Description

Include this file VERY EARLY ON - before including stuff like <cstdio> - to allow use of Valgrind (some features)

Note
Code-Status: Beta

Note - this is NOT required for use of valgrind memcheck() - at least as of v2.0a145.

This module is VERY careful not to include unneded files - and includes just the minimal required to make the valgrind family of tools work IFF you preconfigure (./configure) qStroika_FeatureSupported_Valgrind to be a predefined C++ macro define.

See also
http://valgrind.org/docs/manual/drd-manual.html
https://github.com/svn2github/valgrind
https://sourceforge.net/u/lluct/me722-cm/ci/master/tree/external/valgrind/main/memcheck/memcheck.h
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

TODO:

Definition in file Valgrind.h.

Function Documentation

◆ IsRunningUnderValgrind()

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).

Note
This can be called whether or not qStroika_FeatureSupported_Valgrind is defined, but it always returns false if qStroika_FeatureSupported_Valgrind is not defined.