From: Ethan M. <merritt@u.washington.edu> - 2004-07-22 16:42:42
|
I would like to audit the memory allocation and deallocation for strings during a gnuplot run, to make sure there are no memory leaks. The existence of the routine gp_alloc(mem,"tag label") suggests that some such facility was intended, but since there is no corresponding routine gp_free I don't see how to use it for this purpose. Is there some clever way of asking for a dump of the currently allocated memory chunks? It would be nice to see the tag labels as well, but I can worry about that later if indeed it proves necessary to trace down a memory leak. I see some code in alloc.c marked #ifdef CHECK_HEAP_USE but it is not obvious to me how to use it. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |