From 3cd69438f8db9d48d897ab13335db6350fdbdd7f Mon Sep 17 00:00:00 2001 From: butterkeks Date: Mon, 26 Aug 2024 08:09:33 +0200 Subject: [PATCH] Remove profiler --- include/utils/dp_profile.h | 7 ------- src/frontends/gtk3popup/dictpopup-application.c | 1 - src/frontends/gtk3popup/ui_manager.c | 2 -- src/utils/dp_profile.c | 16 ---------------- 4 files changed, 26 deletions(-) delete mode 100644 include/utils/dp_profile.h delete mode 100644 src/utils/dp_profile.c diff --git a/include/utils/dp_profile.h b/include/utils/dp_profile.h deleted file mode 100644 index 4c2cb63..0000000 --- a/include/utils/dp_profile.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef PROFILE_H -#define PROFILE_H - -void set_start_time_now(void); -void set_end_time_now(void); - -#endif // PROFILE_H diff --git a/src/frontends/gtk3popup/dictpopup-application.c b/src/frontends/gtk3popup/dictpopup-application.c index de05cf3..d4efc64 100644 --- a/src/frontends/gtk3popup/dictpopup-application.c +++ b/src/frontends/gtk3popup/dictpopup-application.c @@ -12,7 +12,6 @@ #include #include #include -#include #include G_DEFINE_TYPE(DpApplication, dp_application, GTK_TYPE_APPLICATION) diff --git a/src/frontends/gtk3popup/ui_manager.c b/src/frontends/gtk3popup/ui_manager.c index 74fc6ca..646a3b9 100644 --- a/src/frontends/gtk3popup/ui_manager.c +++ b/src/frontends/gtk3popup/ui_manager.c @@ -4,8 +4,6 @@ #include "objects/color.h" #include "platformdep/audio.h" -#include - static gboolean on_refresh_exists_dot(GtkWidget *widget, cairo_t *cr, gpointer user_data); static void disable_button(GtkWidget *button) { diff --git a/src/utils/dp_profile.c b/src/utils/dp_profile.c deleted file mode 100644 index edc4f8c..0000000 --- a/src/utils/dp_profile.c +++ /dev/null @@ -1,16 +0,0 @@ -#include - -#include "utils/dp_profile.h" - -#include - -clock_t start_time; - -void set_start_time_now(void) { - start_time = clock(); -} - -void set_end_time_now(void) { - clock_t end_time = clock(); - dbg("Startup time: %fs\n", (double)(end_time - start_time) / CLOCKS_PER_SEC); -} \ No newline at end of file