diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-06-18 09:41:25 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-06-18 09:41:25 (GMT) |
commit | bf70bdd02363606dc3d81c1a97059be6ecaec3b6 (patch) | |
tree | 7145a35ee01103f7cbd6ba44dd6c5a4f718539ae /doc/memory.n | |
parent | 9061f4d8529c1f16c80c71cc3d2bbe9bf33a8b97 (diff) | |
download | tcl-bf70bdd02363606dc3d81c1a97059be6ecaec3b6.zip tcl-bf70bdd02363606dc3d81c1a97059be6ecaec3b6.tar.gz tcl-bf70bdd02363606dc3d81c1a97059be6ecaec3b6.tar.bz2 |
Apply patch from [Bug 988703]. Many thanks to Joe Mistachkin for development.
Diffstat (limited to 'doc/memory.n')
-rw-r--r-- | doc/memory.n | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/doc/memory.n b/doc/memory.n index 0bc1b64..b269d7a 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.13 2008/10/17 10:22:25 dkf Exp $ +'\" RCS: @(#) $Id: memory.n,v 1.14 2009/06/18 09:41:30 dkf 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 . |