#ifdef HAVE_LIBPCAP
int caps_queries = 0;
#endif
- /* Start time in microseconds*/
- guint64 start_time = g_get_monotonic_time();
#ifdef DEBUG_STARTUP_TIME
- /* At least on Windows there is a problem with the loging as the preferences is taken
+ /* Start time in microseconds */
+ guint64 start_time = g_get_monotonic_time();
+ /* At least on Windows there is a problem with the logging as the preferences is taken
* into account and the preferences are loaded pretty late in the startup process.
*/
prefs.console_log_level = DEBUG_STARTUP_TIME_LOGLEVEL;
open_failure_alert_box, read_failure_alert_box,
write_failure_alert_box);
- wtap_init();
+ wtap_init(TRUE);
splash_update(RA_DISSECTORS, NULL, NULL);
#ifdef DEBUG_STARTUP_TIME
splash_update(RA_EXTCAP, NULL, NULL);
extcap_register_preferences();
splash_update(RA_PREFERENCES, NULL, NULL);
+#ifdef DEBUG_STARTUP_TIME
g_log(LOG_DOMAIN_MAIN, G_LOG_LEVEL_INFO, "Calling module preferences, elapsed time %" G_GUINT64_FORMAT " us \n", g_get_monotonic_time() - start_time);
+#endif
global_commandline_info.prefs_p = ws_app.readConfigurationFiles(false);
#endif /* HAVE_LIBPCAP */
wsApp->allSystemsGo();
+#ifdef DEBUG_STARTUP_TIME
g_log(LOG_DOMAIN_MAIN, G_LOG_LEVEL_INFO, "Wireshark is up and ready to go, elapsed time %" G_GUINT64_FORMAT "us \n", g_get_monotonic_time() - start_time);
+#endif
SimpleDialog::displayQueuedMessages(main_w);
/* User could specify filename, or display filter, or both */