[gnome-builder] libide: add tracing to context init/dispose/finalize
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: add tracing to context init/dispose/finalize
- Date: Tue, 24 Mar 2015 00:12:08 +0000 (UTC)
commit 9f7251cbefaec2ca39f1b1454fdd2e10eb5d8cab
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 11 13:31:44 2015 -0700
libide: add tracing to context init/dispose/finalize
libide/ide-context.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index 7746a06..e8e8ce0 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -449,6 +449,8 @@ ide_context_dispose (GObject *object)
gpointer key;
gpointer value;
+ IDE_ENTRY;
+
g_return_if_fail (IDE_IS_CONTEXT (self));
g_hash_table_iter_init (&iter, self->services);
@@ -464,6 +466,8 @@ ide_context_dispose (GObject *object)
}
G_OBJECT_CLASS (ide_context_parent_class)->dispose (object);
+
+ IDE_EXIT;
}
static void
@@ -471,6 +475,8 @@ ide_context_finalize (GObject *object)
{
IdeContext *self = (IdeContext *)object;
+ IDE_ENTRY;
+
g_clear_pointer (&self->services, g_hash_table_unref);
g_clear_pointer (&self->root_build_dir, g_free);
@@ -482,6 +488,8 @@ ide_context_finalize (GObject *object)
g_clear_object (&self->vcs);
G_OBJECT_CLASS (ide_context_parent_class)->finalize (object);
+
+ IDE_EXIT;
}
static void
@@ -681,6 +689,8 @@ ide_context_class_init (IdeContextClass *klass)
static void
ide_context_init (IdeContext *self)
{
+ IDE_ENTRY;
+
g_autofree gchar *scriptsdir = NULL;
self->root_build_dir = g_build_filename (g_get_user_cache_dir (),
@@ -729,6 +739,8 @@ ide_context_init (IdeContext *self)
"context", self,
"scripts-directory", scriptsdir,
NULL);
+
+ IDE_EXIT;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]