On Sat, Jun 15, 2013 at 12:23 AM, dE <de.tec...@gmail.com> wrote: > On 06/14/13 17:02, Matthias Clasen wrote: >> >> On Fri, Jun 14, 2013 at 3:27 AM, dE <de.tec...@gmail.com> wrote: >>> >>> I was monitoring the memory usage before and after execution of >>> g_object_unref and gtk_list_store_clear, and it didnt change the memory >>> usage by a bit. >>> >>> Is this normal (am I doing it right?)? >> >> What are you monitoring, and how ? >> >> It is i normal that freeing memory does not change the resource >> consumption of the process. The freed memory will be available for >> reuse by malloc, but malloc does not immediately return the memory to >> the OS. > > > So I'll try allocating like.... 7GB of memory to fill up the ram, after > finishing, it should free. I'll report back.
For more fine grained memory profiling you should use valgrind. See some hints here for running your Glib program with valgrind: https://live.gnome.org/Valgrind Cheers, -Tristan _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list