[gnome-builder/wip/chergert/code-index-revamp] code-index: improve tracing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/code-index-revamp] code-index: improve tracing
- Date: Sat, 2 Feb 2019 09:36:55 +0000 (UTC)
commit 2ccc4fdbeb31098809e6f6daf7adfbfddf7d8c57
Author: Christian Hergert <chergert redhat com>
Date: Sat Feb 2 01:35:41 2019 -0800
code-index: improve tracing
src/plugins/code-index/gbp-code-index-plan.c | 32 ++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/code-index/gbp-code-index-plan.c b/src/plugins/code-index/gbp-code-index-plan.c
index 582a4bfd0..39140da35 100644
--- a/src/plugins/code-index/gbp-code-index-plan.c
+++ b/src/plugins/code-index/gbp-code-index-plan.c
@@ -179,6 +179,8 @@ gbp_code_index_plan_cull_indexed_worker (IdeTask *task,
GHashTableIter iter;
gpointer key, value;
+ IDE_ENTRY;
+
g_assert (IDE_IS_TASK (task));
g_assert (GBP_IS_CODE_INDEX_PLAN (self));
g_assert (G_IS_FILE (cull->cachedir));
@@ -292,6 +294,8 @@ gbp_code_index_plan_cull_indexed_worker (IdeTask *task,
g_mutex_unlock (&self->mutex);
ide_task_return_boolean (task, TRUE);
+
+ IDE_EXIT;
}
void
@@ -305,6 +309,8 @@ gbp_code_index_plan_cull_indexed_async (GbpCodeIndexPlan *self,
g_autoptr(GFile) basedir = NULL;
CullIndexed *state;
+ IDE_ENTRY;
+
g_return_if_fail (GBP_IS_CODE_INDEX_PLAN (self));
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -316,6 +322,8 @@ gbp_code_index_plan_cull_indexed_async (GbpCodeIndexPlan *self,
ide_task_set_source_tag (task, gbp_code_index_plan_cull_indexed_async);
ide_task_set_task_data (task, state, cull_indexed_free);
ide_task_run_in_thread (task, gbp_code_index_plan_cull_indexed_worker);
+
+ IDE_EXIT;
}
gboolean
@@ -323,11 +331,17 @@ gbp_code_index_plan_cull_indexed_finish (GbpCodeIndexPlan *self,
GAsyncResult *result,
GError **error)
{
+ gboolean ret;
+
+ IDE_ENTRY;
+
g_return_val_if_fail (IDE_IS_MAIN_THREAD (), FALSE);
g_return_val_if_fail (GBP_IS_CODE_INDEX_PLAN (self), FALSE);
g_return_val_if_fail (IDE_IS_TASK (result), FALSE);
- return ide_task_propagate_boolean (IDE_TASK (result), error);
+ ret = ide_task_propagate_boolean (IDE_TASK (result), error);
+
+ IDE_RETURN (ret);
}
void
@@ -551,6 +565,8 @@ gbp_code_index_plan_populate_worker (IdeTask *task,
GbpCodeIndexPlan *self = source_object;
PopulateData *state = task_data;
+ IDE_ENTRY;
+
g_assert (IDE_IS_TASK (task));
g_assert (GBP_IS_CODE_INDEX_PLAN (self));
g_assert (state != NULL);
@@ -570,6 +586,8 @@ gbp_code_index_plan_populate_worker (IdeTask *task,
task);
ide_task_return_boolean (task, TRUE);
+
+ IDE_EXIT;
}
void
@@ -585,6 +603,8 @@ gbp_code_index_plan_populate_async (GbpCodeIndexPlan *self,
IdeVcs *vcs = NULL;
PopulateData *state;
+ IDE_ENTRY;
+
g_return_if_fail (IDE_IS_MAIN_THREAD ());
g_return_if_fail (GBP_IS_CODE_INDEX_PLAN (self));
g_return_if_fail (IDE_IS_CONTEXT (context));
@@ -607,6 +627,8 @@ gbp_code_index_plan_populate_async (GbpCodeIndexPlan *self,
ide_task_set_source_tag (task, gbp_code_index_plan_populate_async);
ide_task_set_task_data (task, state, populate_data_free);
ide_task_run_in_thread (task, gbp_code_index_plan_populate_worker);
+
+ IDE_EXIT;
}
gboolean
@@ -614,11 +636,17 @@ gbp_code_index_plan_populate_finish (GbpCodeIndexPlan *self,
GAsyncResult *result,
GError **error)
{
+ gboolean ret;
+
+ IDE_ENTRY;
+
g_return_val_if_fail (IDE_IS_MAIN_THREAD (), FALSE);
g_return_val_if_fail (GBP_IS_CODE_INDEX_PLAN (self), FALSE);
g_return_val_if_fail (IDE_IS_TASK (result), FALSE);
- return ide_task_propagate_boolean (IDE_TASK (result), error);
+ ret = ide_task_propagate_boolean (IDE_TASK (result), error);
+
+ IDE_RETURN (ret);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]