diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -98,6 +98,13 @@ int main(int argc, char *argv[]) TrgMainWindow *window; TrgClient *client; +#ifdef DEBUG + //GMemVTable gmvt = {malloc,realloc,free,calloc,malloc,realloc}; + //g_mem_set_vtable(&gmvt); + g_mem_set_vtable(glib_mem_profiler_table); + g_mem_profile(); +#endif + g_type_init(); g_thread_init(NULL); gtk_init(&argc, &argv); |