Tcl_DumpActiveMemory



Tcl_DumpActiveMemory

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
SEE ALSO
KEYWORDS

___________________________

NAME

Tcl_DumpActiveMemory, Tcl_InitMemory, Tcl_ValidateAllMemory − Validated memory allocation interface

SYNOPSIS

#include <tcl.h>

int
Tcl_DumpActiveMemory
(fileName)

void
Tcl_InitMemory
(interp)

void
Tcl_ValidateAllMemory
(fileName, line)

ARGUMENTS

Tcl_Interp *interp (in)

Tcl interpreter in which to add commands.

const char *fileName (in)

For Tcl_DumpActiveMemory, name of the file to which memory information will be written. For Tcl_ValidateAllMemory, name of the file from which the call is being made (normally __FILE__).

int line (in)

Line number at which the call to Tcl_ValidateAllMemory is made (normally __LINE__).

______________

DESCRIPTION

These functions provide access to Tcl memory debugging information. They are only functional when Tcl has been compiled with TCL_MEM_DEBUG defined at compile-time. When TCL_MEM_DEBUG is not defined, these functions are all no-ops.

Tcl_DumpActiveMemory will output a list of all currently allocated memory to the specified file. The information output for each allocated block of memory is: starting and ending addresses (excluding guard zone), size, source file where ckalloc was called to allocate the block and line number in that file. It is especially useful to call Tcl_DumpActiveMemory after the Tcl interpreter has been deleted.

Tcl_InitMemory adds the Tcl memory command to the interpreter given by interp. Tcl_InitMemory is called by Tcl_Main.

Tcl_ValidateAllMemory forces a validation of the guard zones of all currently allocated blocks of memory. Normally validation of a block occurs when its freed, unless full validation is enabled, in which case validation of all blocks occurs when ckalloc and ckfree are called. This function forces the validation to occur at any point.

SEE ALSO

TCL_MEM_DEBUG, memory

KEYWORDS

memory, debug



More Linux Commands

manpages/mtr.8.html
mtr(8) - a network diagnostic tool - Linux manual page......
This version was compiled without GTK. Therefore corresponding options doesnt work. You can use xmtr for work with GTK interface. mtr combines the functionality

manpages/DMXGetInputCount.3.html
DMXGetInputCount(3) - determine number of input devices.....
DMXGetInputCount() returns the number of input devices connected to the Xdmx(1) server in input_count. This number is the same as that returned by XListInputDev

manpages/personality.2.html
personality(2) - set the process execution domain (ManPage)
Linux supports different execution domains, or personalities, for each process. Among other things, execution domains tell Linux how to map signal numbers into

manpages/XtAppGetSelectionTimeout.3.html
XtAppGetSelectionTimeout(3) - set and obtain selection timeo
The XtAppGetSelectionTimeout function returns the current selection timeout value, in milliseconds. The selection timeout is the time within which the two commu

manpages/Module::Build::Platform::EBCDIC.3pm.html
Module::Build::Platform::EBCDIC(3pm) - Builder class for EBC
Module::Build::Platform::EBCDIC.3pm - The sole purpose of this module is to inherit from Module::Build::Base. Please see the Module::Build for the docs. AUTHOR

manpages/opterr.3.html
opterr(3) - Parse command-line options - Linux manual page
The getopt() function parses the command-line arguments. Its arguments argc and argv are the argument count and array as passed to the main() function on progra

manpages/DisplayCells.3.html
DisplayCells(3) - Display macros and functions (Man Page)...
The AllPlanes macro returns a value with all bits set to 1 suitable for use in a plane argument to a procedure. The BlackPixel macro returns the black pixel val

manpages/pam_nologin.8.html
pam_nologin(8) - Prevent non-root users from login (ManPage)
pam_nologin is a PAM module that prevents users from logging into the system when /var/run/nologin or /etc/nologin exists. The contents of the file are displaye

commands.html
Important Linux Commands, Concepts, Examples and Explanations
Linux Commands, Concepts and the Command Interpreter. Examples and explanations for I/O, redirection, expansion, pipes, etc. Contains links to Linux manpages.

manpages/CPANPLUS::Dist::Base.3pm.html
CPANPLUS::Dist::Base(3pm) - Base class for custom distributi
CPANPLUS::Dist::Base functions as a base class for all custom distribution implementations. It does all the mundane work CPANPLUS would have done without a cust

manpages/ccos.3.html
ccos(3) - complex cosine function - Linux manual page.......
The complex cosine function is defined as: ccos(z) = (exp(i * z) + exp(-i * z)) / 2 VERSIONS These functions first appeared in glibc in version 2.1. CONFORMING

manpages/clogl.3.html
clogl(3) - natural logarithm of a complex number (Man Page)
The logarithm clog() is the inverse function of the exponential cexp(3). Thus, if y = clog(z), then z = cexp(y). The imaginary part of y is chosen in the interv





We can't live, work or learn in freedom unless the software we use is free.