RE: Purified gnome libraries???



On to, 2003-09-04 at 12:38, martyn 2 russell bt com wrote:
I think valgrind is the closest thing.

On a lark, I ran valgrind on a very trivial program that only calls
gtk_init and then exits. 

#include <gtk/gtk.h>

int main(int argc, char **argv)
{
  gtk_init(&argc, &argv);
  return 0;
}

Valgrind output the following summary at the end:

==1233== ERROR SUMMARY: 142 errors from 7 contexts (suppressed: 0 from
0)
==1233== malloc/free: in use at exit: 60936 bytes in 976 blocks.
==1233== malloc/free: 3344 allocs, 2368 frees, 328211 bytes allocated.

(I can provide the whole output file, if anyone is interested, though it
is easy to generate it yourself: "valgrind ./hello".)

While many valgrind warnings are often benign, it might be good for an
industrious hacker to start going through them and see what's going on.
(I might have a stab at it myself, after I get one of my two hobby
projects into a decent state where they don't need frequent attention.
This might happen next year.)

-- 
http://liw.iki.fi/liw/photos/swordmaiden/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]