On Wed, 2008-06-04 at 15:02 +0300, Uygar Gumus wrote:

> I want to get some information about leaks in clutter.

you need to export these variables when profiling a GObject-based
library with valgrind:

  G_SLICE=always-malloc G_DEBUG=gc-friendly

you will also need to build up a suppression file from a simple "hello
world" application in Clutter that is known not to leak - something
like:

  #include <clutter/clutter.h>

  int
  main (int   argc,
        char *argv[])
  {
    ClutterActor *stage;

    clutter_init (&argc, &argv);

    stage = clutter_stage_get_default ();
    g_signal_connect (stage,
                      "button-press-even", G_CALLBACK (clutter_main_quit),
                      NULL);
    clutter_actor_show (stage);

    clutter_main ();

    return 0;
  }

and then use valgrind with the suppression file.

see:

  http://live.gnome.org/Valgrind

for more information; most of the tips about how to use valgrind with
gtk+ applications apply to Clutter as well.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to