⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dumpactivememory.3

📁 tcl是工具命令语言
💻 3
字号:
'\"'\" Copyright (c) 1992-1999 Karl Lehenbauer and Mark Diekhans.'\" Copyright (c) 2000 by Scriptics Corporation.'\" All rights reserved.'\" '\" RCS: @(#) $Id: DumpActiveMemory.3,v 1.5 2001/12/28 23:36:31 dgp Exp $'\" .so man.macros.TH "Tcl_DumpActiveMemory" 3 8.1 Tcl "Tcl Library Procedures".BS.SH NAMETcl_DumpActiveMemory, Tcl_InitMemory, Tcl_ValidateAllMemory \- Validated memory allocation interface..SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spint\fBTcl_DumpActiveMemory\fR(\fIfileName\fR).spvoid\fBTcl_InitMemory\fR(\fIinterp\fR).spvoid\fBTcl_ValidateAllMemory\fR(\fIfileName, line\fR).SH ARGUMENTS.AP Tcl_Interp *interp inTcl interpreter in which to add commands..AP "CONST char" *fileName inFor \fBTcl_DumpActiveMemory\fR, name of the file to which memoryinformation will be written.  For \fBTcl_ValidateAllMemory\fR, name ofthe file from which the call is being made (normally \fB__FILE__\fR)..AP int line inLine number at which the call to \fBTcl_ValidateAllMemory\fR is made(normally \fB__LINE__\fR)..BE.SH DESCRIPTIONThese functions provide access to Tcl memory debugging information.They are only functional when Tcl has been compiled with\fBTCL_MEM_DEBUG\fR defined at compile-time.  When \fBTCL_MEM_DEBUG\fRis not defined, these functions are all no-ops..PP \fBTcl_DumpActiveMemory\fR will output a list of all currentlyallocated memory to the specified file.  The information output foreach allocated block of memory is:  starting and ending addresses(excluding guard zone), size, source file where \fBckalloc\fR wascalled to allocate the block and line number in that file.  It isespecially useful to call \fBTcl_DumpActiveMemory\fR after the Tclinterpreter has been deleted..PP\fBTcl_InitMemory\fR adds the Tcl \fBmemory\fR command to theinterpreter given by \fIinterp\fR.  \fBTcl_InitMemory\fR is calledby \fBTcl_Main\fR..PP\fBTcl_ValidateAllMemory\fR forces a validation of the guard zones ofall currently allocated blocks of memory.  Normally validation of ablock occurs when its freed, unless full validation is enabled, inwhich case validation of all blocks occurs when \fBckalloc\fR and\fBckfree\fR are called.  This function forces the validation to occurat any point..SH "SEE ALSO"TCL_MEM_DEBUG, memory.SH KEYWORDSmemory, debug

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -