[gnome-builder] subprocess: add more tracing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] subprocess: add more tracing
- Date: Sat, 18 Mar 2017 09:29:22 +0000 (UTC)
commit a1eef10ecda22b53d62a821c48c3ec7f788c02d4
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 18 00:06:26 2017 -0700
subprocess: add more tracing
libide/subprocess/ide-subprocess-supervisor.c | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/libide/subprocess/ide-subprocess-supervisor.c b/libide/subprocess/ide-subprocess-supervisor.c
index 467c1b4..401f7ff 100644
--- a/libide/subprocess/ide-subprocess-supervisor.c
+++ b/libide/subprocess/ide-subprocess-supervisor.c
@@ -203,17 +203,21 @@ ide_subprocess_supervisor_start (IdeSubprocessSupervisor *self)
IdeSubprocessSupervisorPrivate *priv = ide_subprocess_supervisor_get_instance_private (self);
gboolean ret;
+ IDE_ENTRY;
+
g_return_if_fail (IDE_IS_SUBPROCESS_SUPERVISOR (self));
if (priv->launcher == NULL)
{
g_warning ("Cannot supervise process, no launcher has been set");
- return;
+ IDE_EXIT;
}
priv->supervising = TRUE;
g_signal_emit (self, signals [SUPERVISE], 0, priv->launcher, &ret);
+
+ IDE_EXIT;
}
static gboolean
@@ -221,17 +225,21 @@ ide_subprocess_supervisor_start_in_usec_cb (gpointer data)
{
g_autoptr(IdeSubprocessSupervisor) self = data;
+ IDE_ENTRY;
+
g_assert (IDE_IS_SUBPROCESS_SUPERVISOR (self));
ide_subprocess_supervisor_start (self);
- return G_SOURCE_REMOVE;
+ IDE_RETURN (G_SOURCE_REMOVE);
}
static void
ide_subprocess_supervisor_start_in_usec (IdeSubprocessSupervisor *self,
gint64 usec)
{
+ IDE_ENTRY;
+
g_assert (IDE_IS_SUBPROCESS_SUPERVISOR (self));
/* Wait to re-start the supervisor until our RATE_LIMIT_THRESHOLD_SECONDS
@@ -241,6 +249,8 @@ ide_subprocess_supervisor_start_in_usec (IdeSubprocessSupervisor *self,
g_timeout_add (usec / 1000L,
ide_subprocess_supervisor_start_in_usec_cb,
g_object_ref (self));
+
+ IDE_EXIT;
}
void
@@ -249,17 +259,21 @@ ide_subprocess_supervisor_stop (IdeSubprocessSupervisor *self)
IdeSubprocessSupervisorPrivate *priv = ide_subprocess_supervisor_get_instance_private (self);
gboolean ret;
+ IDE_ENTRY;
+
g_return_if_fail (IDE_IS_SUBPROCESS_SUPERVISOR (self));
if (priv->launcher == NULL)
{
g_warning ("Cannot unsupervise process, no launcher has been set");
- return;
+ IDE_EXIT;
}
priv->supervising = FALSE;
g_signal_emit (self, signals [UNSUPERVISE], 0, priv->launcher, &ret);
+
+ IDE_EXIT;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]