+ lttv_argc = argc;
+ lttv_argv = argv;
+
+ /* Before anything else, check if memory profiling is requested */
+
+ for(i = 1 ; i < argc ; i++) {
+ if(*(argv[i]) != '-') break;
+ if(strcmp(argv[i], profile_memory_short_option) == 0 ||
+ strcmp(argv[i], profile_memory_long_option) == 0) {
+ g_mem_set_vtable(glib_mem_profiler_table);
+ g_message("Memory summary before main");
+ g_mem_profile();
+ profile_memory = TRUE;
+ break;
+ }
+ }
+
+
+ /* Initialize glib and by default ignore info and debug messages */