src: ensure tools initialize libdex and sysprof clock

This commit is contained in:
Christian Hergert
2025-07-01 10:13:20 -07:00
parent f9557310d4
commit 23bde6e882
3 changed files with 4 additions and 0 deletions

View File

@ -465,6 +465,7 @@ main (int argc,
g_autoptr(GOptionContext) context = NULL;
g_autoptr(GError) error = NULL;
sysprof_clock_init ();
dex_init ();
g_set_prgname ("sysprof-cat");

View File

@ -30,6 +30,7 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <libdex.h>
#include <sysprof.h>
#if HAVE_POLKIT_AGENT
@ -349,6 +350,7 @@ main (int argc,
};
sysprof_clock_init ();
dex_init ();
g_unix_signal_add (SIGINT, sigint_handler, main_loop);
g_unix_signal_add (SIGTERM, sigint_handler, main_loop);

View File

@ -268,6 +268,7 @@ main (int argc,
g_autoptr(GError) error = NULL;
const char *copy[3];
sysprof_clock_init ();
dex_init ();
g_set_prgname ("sysprof-diff");