From 3c765e9f178e626da56593a12f94533046da7c9e Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 5 Sep 2021 17:03:13 +0200 Subject: [PATCH] Add some init debug messages To get an overall idea how long initialization takes --- src/dbus.js | 2 +- src/main.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/dbus.js b/src/dbus.js index 620a751f..fe0c71ce 100644 --- a/src/dbus.js +++ b/src/dbus.js @@ -17,7 +17,7 @@ const ShellProxyWrapper = Gio.DBusProxy.makeProxyWrapper(` let shellProxy = null; -debug('initializing GNOME Shell DBus proxy'); +debug('creating GNOME Shell DBus proxy'); new ShellProxyWrapper( Gio.DBus.session, 'org.gnome.Shell', diff --git a/src/main.js b/src/main.js index 48437cd4..71f8a554 100644 --- a/src/main.js +++ b/src/main.js @@ -5,14 +5,21 @@ imports.gi.versions.Soup = '2.4'; pkg.initGettext(); pkg.initFormat(); +const Debug = imports.src.debug; +Debug.debug('imports'); + const { GstClapper, Gtk, Adw } = imports.gi; const { App } = imports.src.app; function main(argv) { + Debug.debug('main'); + GstClapper.Clapper.gst_init(null); Gtk.init(); Adw.init(); + Debug.debug('initialized'); + new App().run(argv); }