Overview
| Artifact ID: | f5e02961d24e47dfef3a4e913150ab82690470da |
|---|---|
| Ticket: | 1abbfcdff166b9f6bd2de2c27e5d09315f7baaa0
Information request regarding 'memory' command |
| User & Date: | dkf on 2014-03-06 13:51:28 |
Changes
- icomment:
The whole Tcl library <b>must</b> be compiled with <tt>TCL_MEM_DEBUG</tt> defined, in order for the tracking hooks to be put in the memory management code <i>at all</i>. It's also recommended that you recompile your code with that symbol defined when using the Tcl library (so allocations via Tcl's APIs from your code also get tracked), though it shouldn't strictly be necessary. <p>The <b>supported way of doing this</b> is by passing <tt>--enable-symbols=mem</tt> to <tt>configure</tt> when building Tcl. (This implies <tt>--enable-symbols</tt>, and is implied by <tt>--enable-symbols=all</tt>, which turns on other types of debugging as well.) <p>This is in addition to calling <tt>Tcl_InitMemory</tt>. When <tt>TCL_MEM_DEBUG</tt> is <b>not</b> defined when building Tcl, <tt>Tcl_InitMemory</tt> is an empty function, a no-op.
- login: "dkf"
- mimetype: "text/html"
- subsystem changed to: "41. Memory Allocation"
- username: "dkf"