diff options
author | Joe Mistachkin <joe@mistachkin.com> | 2009-10-18 11:21:38 (GMT) |
---|---|---|
committer | Joe Mistachkin <joe@mistachkin.com> | 2009-10-18 11:21:38 (GMT) |
commit | 7b94da051e6dde67f1a1602c93fffbcc98787cf1 (patch) | |
tree | 603c5054308f9adf1cc735c02a0e1c578b379924 /doc | |
parent | 391cc5529b10b842b5e34acb19bf559b56df7f49 (diff) | |
download | tcl-7b94da051e6dde67f1a1602c93fffbcc98787cf1.zip tcl-7b94da051e6dde67f1a1602c93fffbcc98787cf1.tar.gz tcl-7b94da051e6dde67f1a1602c93fffbcc98787cf1.tar.bz2 |
Fix for [Bug 988703, 1565466]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/memory.n | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/memory.n b/doc/memory.n index 7e49882..ed8a5fc 100644 --- a/doc/memory.n +++ b/doc/memory.n @@ -3,7 +3,7 @@ '\" Copyright (c) 2000 by Scriptics Corporation. '\" All rights reserved. '\" -'\" RCS: @(#) $Id: memory.n,v 1.12 2008/01/18 15:51:08 dkf Exp $ +'\" RCS: @(#) $Id: memory.n,v 1.12.2.1 2009/10/18 11:21:38 mistachkin Exp $ '\" .so man.macros .TH memory n 8.1 Tcl "Tcl Built-In Commands" @@ -41,10 +41,17 @@ number of calls to \fBckalloc\fR not met by a corresponding call to \fBckfree\fR), the current bytes allocated, and the maximum number of packets and bytes allocated. .TP -\fB memory init \fR[\fBon\fR|\fBoff\fR] +\fBmemory init \fR[\fBon\fR|\fBoff\fR] . Turn on or off the pre-initialization of all allocated memory -with bogus bytes. Useful for detecting the use of uninitialized values. +with bogus bytes. Useful for detecting the use of uninitialized +values. +.TP +\fBmemory objs \fIfile\fR +. +Causes a list of all allocated Tcl_Obj values to be written to the specified +\fIfile\fR immediately, together with where they were allocated. Useful for +checking for leaks of values. .TP \fBmemory onexit\fR \fIfile\fR . @@ -69,9 +76,11 @@ to \fBckalloc\fR causes a line of trace information to be written to address returned, the amount of memory allocated, and the C filename and line number of the code performing the allocation. For example: .RS +.PP .CS ckalloc 40e478 98 tclProc.c 1406 .CE +.PP Calls to \fBckfree\fR are traced in the same manner. .RE .TP |