[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-womb] qualitycode qualitycode.texi
From: |
Ludovic Courtès |
Subject: |
[commit-womb] qualitycode qualitycode.texi |
Date: |
Tue, 23 Nov 2010 08:27:40 +0000 |
CVSROOT: /sources/womb
Module name: qualitycode
Changes by: Ludovic Courtès <civodul> 10/11/23 08:27:40
Modified files:
. : qualitycode.texi
Log message:
More on memory management.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qualitycode/qualitycode.texi?cvsroot=womb&r1=1.4&r2=1.5
Patches:
Index: qualitycode.texi
===================================================================
RCS file: /sources/womb/qualitycode/qualitycode.texi,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- qualitycode.texi 19 Nov 2010 22:40:53 -0000 1.4
+++ qualitycode.texi 23 Nov 2010 08:27:36 -0000 1.5
@@ -1,5 +1,5 @@
\input texinfo @c -*-texinfo-*-
address@hidden $Id: qualitycode.texi,v 1.4 2010/11/19 22:40:53 karl Exp $
address@hidden $Id: qualitycode.texi,v 1.5 2010/11/23 08:27:36 civodul Exp $
@comment %**start of header
@setfilename qualitycode.info
@set UPDATED 18 November 2010
@@ -97,6 +97,11 @@
way. With the @code{--leak-check=full} option, Valgrind and
@code{memcheck} also report memory leaks.
+Valgrind's @url{http://valgrind.org@/docs/manual@/dh-manual.html,
+dynamic heap analysis tool} (DHAT) can be used to find out
+process-lifetime leaks (i.e., steady heap allocations that get freed
+only at program exit) as well as unused memory regions.
+
Valgrind has the advantage that applications do not need to be
recompiled or relinked. However, since Valgrind is a hardware
simulator, it runs programs 20 to 100 times more slowly than the raw
@@ -143,6 +148,11 @@
@node C library support
@section C library support
+The GNU C Library provides debugging facilities for heap memory
+management issues. They can be used for any applications that use
address@hidden and related functions from the C library without having to
+recompile or relink them, and they incur little overhead at run time.
+
@c FIXME: Incomplete.
@itemize
@item
@@ -154,6 +164,10 @@
@code{MALLOC_PERTURB_}, which can be used to force initialization of the
heap to a given value, thereby helping find out accesses to
uninitialized memory regions.
+
address@hidden
+The (undocumented) @code{memusage.sh} script allows heap usage to be
+profiled, thus helping find out memory leaks.
@end itemize