Re: [Vala] How track memory leaks ?



This is a problem we faced in Geary.  We went several directions before adding this, which helped immensely:

http://redmine.yorba.org/projects/geary/repository/revisions/master/entry/src/engine/api/geary-base-object.vala

Note that this approach is of limited utility, as it requires *all* your project's classes to inherit from it in order to get reference tracking.  However, it did help us track down a couple of memory leaks that would've been a bear to find otherwise.

May not be right for you, but perhaps it gives you ideas as well.

-- Jim

On Mon, Mar 18, 2013 at 7:32 AM, raum no-log org wrote:
Hello,

I wondered if it 's possible to recover memory information or memory leaks
 other than "mem_set_vtable(mem_profiler_table);" and without using a
third party software like valgrind ?

Thanks

Raum


_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



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