[gnome-builder] autotools: track how often we are asked for build flags
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] autotools: track how often we are asked for build flags
- Date: Wed, 13 May 2015 07:20:31 +0000 (UTC)
commit 3c38b12cf85a35c3f1a7cd3a550059744ddd9342
Author: Christian Hergert <christian hergert me>
Date: Wed May 13 00:19:10 2015 -0700
autotools: track how often we are asked for build flags
libide/autotools/ide-autotools-build-system.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libide/autotools/ide-autotools-build-system.c b/libide/autotools/ide-autotools-build-system.c
index 50d4954..2a5438f 100644
--- a/libide/autotools/ide-autotools-build-system.c
+++ b/libide/autotools/ide-autotools-build-system.c
@@ -19,6 +19,8 @@
#include <glib/gi18n.h>
#include <gio/gio.h>
+#include "egg-counter.h"
+
#include "ide-autotools-build-system.h"
#include "ide-autotools-builder.h"
#include "ide-context.h"
@@ -47,6 +49,8 @@ G_DEFINE_TYPE_EXTENDED (IdeAutotoolsBuildSystem,
G_IMPLEMENT_INTERFACE (G_TYPE_ASYNC_INITABLE,
async_initable_iface_init))
+EGG_DEFINE_COUNTER (build_flags, "Autotools", "Flags Requests", "Requests count for build flags")
+
enum {
PROP_0,
PROP_TARBALL_NAME,
@@ -488,6 +492,8 @@ ide_autotools_build_system_get_build_flags_async (IdeBuildSystem *build_sys
g_assert (IDE_IS_AUTOTOOLS_BUILD_SYSTEM (self));
g_assert (IDE_IS_FILE (file));
+ EGG_COUNTER_INC (build_flags);
+
gfile = ide_file_get_file (file);
task = g_task_new (self, cancellable, callback, user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]