diff options
author | kjnash <k.j.nash@usa.net> | 2022-08-31 15:24:20 (GMT) |
---|---|---|
committer | kjnash <k.j.nash@usa.net> | 2022-08-31 15:24:20 (GMT) |
commit | 7443a97bd1d5060c2bc3ea57dbd1899ea2efb9b8 (patch) | |
tree | a7402019faf3e75458552fe9dde90324f981fe7b /doc/Alloc.3 | |
parent | 19f8c3bb6b2aa8d571a7534b588ddacfb49952d3 (diff) | |
parent | 52b58d0c7d1575d7c784ccb344862e0de8a9686b (diff) | |
download | tcl-7443a97bd1d5060c2bc3ea57dbd1899ea2efb9b8.zip tcl-7443a97bd1d5060c2bc3ea57dbd1899ea2efb9b8.tar.gz tcl-7443a97bd1d5060c2bc3ea57dbd1899ea2efb9b8.tar.bz2 |
Merge old 8.7 6c69a72c58
Diffstat (limited to 'doc/Alloc.3')
-rw-r--r-- | doc/Alloc.3 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/Alloc.3 b/doc/Alloc.3 index 8f25c52..70b0f7d 100644 --- a/doc/Alloc.3 +++ b/doc/Alloc.3 @@ -8,7 +8,7 @@ .so man.macros .BS .SH NAME -Tcl_Alloc, Tcl_Free, Tcl_Realloc, Tcl_AttemptAlloc, Tcl_AttemptRealloc, ckalloc, ckfree, ckrealloc, attemptckalloc, attemptckrealloc \- allocate or free heap memory +Tcl_Alloc, Tcl_Free, Tcl_Realloc, Tcl_AttemptAlloc, Tcl_AttemptRealloc, Tcl_GetMemoryInfo, ckalloc, ckfree, ckrealloc, attemptckalloc, attemptckrealloc \- allocate or free heap memory .SH SYNOPSIS .nf \fB#include <tcl.h>\fR @@ -28,6 +28,9 @@ char * char * \fBTcl_AttemptRealloc\fR(\fIptr, size\fR) .sp +void +\fBTcl_GetMemoryInfo\fR(\fIdsPtr\fR) +.sp char * \fBckalloc\fR(\fIsize\fR) .sp @@ -48,6 +51,8 @@ char * Size in bytes of the memory block to allocate. .AP char *ptr in Pointer to memory block to free or realloc. +.AP Tcl_DString *dsPtr in +Initialized DString pointer. .BE .SH DESCRIPTION @@ -88,5 +93,9 @@ these macros are redefined to be special debugging versions of these procedures. To support Tcl's memory debugging within a module, use the macros rather than direct calls to \fBTcl_Alloc\fR, etc. +\fBTcl_GetMemoryInfo\fR appends a list-of-lists of memory stats to the +provided DString. This function cannot be used in stub-enabled extensions, +and it is only available if Tcl is compiled with the threaded memory allocator. + .SH KEYWORDS alloc, allocation, free, malloc, memory, realloc, TCL_MEM_DEBUG |