documented how to debug with valgrind

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@988 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2008-03-18 03:00:03 +00:00
parent 20a970ae3d
commit 2578384277
+9
View File
@@ -4,6 +4,15 @@
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* @author imaginos@imaginos.net
*
* NOTE, the proper way to valgrind this module is to compile znc with debug, and do the following ...
*
* PERL_DESTRUCT_LEVEL=2 GLIBCPP_FORCE_NEW=1 valgrind --leak-check=full /path/to/znc
*
* GLIBCPP_FORCE_NEW is an STL env flag to turn of mem pooling, and stops false alarms within stl
* PERL_DESTRUCT_LEVEL is a perl env flag to force the VM to cleanup, this also stops false alarms, but within perl
*/
#ifdef HAVE_PERL