Add some init debug messages

To get an overall idea how long initialization takes
This commit is contained in:
Rafostar
2021-09-05 17:03:13 +02:00
parent a77eb5352e
commit 3c765e9f17
2 changed files with 8 additions and 1 deletions

View File

@@ -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',

View File

@@ -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);
}