Wed Sep 22 16:08:01 PDT 1999

(Raster)

make the memory debugging stuff better commented - and add ipc call tyo
dump mem debug info


SVN revision: 374
This commit is contained in:
Carsten Haitzler 1999-09-22 22:33:47 +00:00
parent f1bae17ab0
commit 8da2859cec
5 changed files with 67 additions and 25 deletions

View File

@ -2211,3 +2211,11 @@ Wed Sep 22 15:41:28 PDT 1999
(Raster)
some more multihead fixes...
-------------------------------------------------------------------------------
Wed Sep 22 16:08:01 PDT 1999
(Raster)
make the memory debugging stuff better commented - and add ipc call tyo
dump mem debug info

View File

@ -579,7 +579,6 @@ HButtonPress(XEvent * ev)
ApplySclass(FindItem("SOUND_BUTTON_CLICK", 0,
LIST_FINDBY_NAME, LIST_TYPE_SCLASS));
HandleMouseDown(ev);
EDisplayMemUse();
#if 0
{
int x, y, maxh = 0, count = 0, mcount = 0, ww, hh;

View File

@ -55,6 +55,7 @@ void IPC_GeneralInfo(char *params, Client * c);
void IPC_Modules(char *params, Client * c);
void IPC_DockPosition(char *params, Client * c);
void IPC_KDE(char *params, Client * c);
void IPC_MemDebug(char *params, Client * c);
/* Changes By Asmodean_ <naru@caltech.edu> / #E@Efnet
*
@ -533,6 +534,17 @@ IPCStruct IPCArray[] =
"kde",
"Turns on and off KDE support",
"use \"kde on\" and \"kde off\" to enable/disable support"
},
{
IPC_MemDebug,
"dump_mem_debug",
"Dumps memory debugging information out to e.mem.out",
"Use this command to have E dump its current memory debugging table\n"
"to the e.mem.out file. NOTE: please read comments at the top of\n"
"memory.c to see how to enable this. This will let you hunt memory\n"
"leaks, over-allocations of memory, and other memory-related problems\n"
"very easily with all pointers allocated stamped with a time, call\n"
"tree that led to that allocation, file and line, and the chunk size.\n"
}
};
@ -4898,3 +4910,12 @@ IPC_Group(char *params, Client * c)
return;
}
void
IPC_MemDebug(char *params, Client * c)
{
EDisplayMemUse();
return;
params = NULL;
c = NULL;
}

View File

@ -1,7 +1,21 @@
#include "E.h"
/*#define DBUG_MEM 1 */
/* uncomment DBUG_MEM to get rudamentary pointer checking */
/* uncomment MEM_OUT to get full debug output. to make this work you have to */
/* put a file in the directory (cwd) you run E from calle e.sym */
/* to generate the e.sym file do: */
/* */
/* nm enlightenment | grep " T " > e.sym */
/* nm enlightenment | grep " t " > e.sym2 */
/* cat e.sym >> e.sym2 */
/* sort < e.sym2 > e.sym */
/* rm e.sym2 */
/* */
/* do that whenever you recompile enlightenment and place the e.sym file in */
/* the current working directory of enlightenment */
/* */
/*#define DBUG_MEM 1 */
/*#define MEM_OUT 1 */
#ifdef DBUG_MEM