[gnome-builder] code-index: add trace message for debugging
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code-index: add trace message for debugging
- Date: Mon, 26 Mar 2018 00:24:32 +0000 (UTC)
commit 82cf4efcba854fbed64ec4b47c3630ea5ac350d3
Author: Christian Hergert <chergert redhat com>
Date: Sun Mar 25 17:23:21 2018 -0700
code-index: add trace message for debugging
src/plugins/code-index/ide-code-index-builder.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/code-index/ide-code-index-builder.c b/src/plugins/code-index/ide-code-index-builder.c
index ce4f3ea72..3d808942a 100644
--- a/src/plugins/code-index/ide-code-index-builder.c
+++ b/src/plugins/code-index/ide-code-index-builder.c
@@ -825,6 +825,7 @@ add_entries_to_index (GPtrArray *entries,
gchar num[16];
g_assert (IDE_IS_MAIN_THREAD ());
+ g_assert (entries != NULL);
g_assert (G_IS_FILE (file));
g_assert (file_id > 0);
g_assert (IDE_IS_PERSISTENT_MAP_BUILDER (map_builder));
@@ -842,6 +843,8 @@ add_entries_to_index (GPtrArray *entries,
dzl_fuzzy_index_builder_set_metadata_uint32 (fuzzy_builder, filename, file_id);
dzl_fuzzy_index_builder_set_metadata_string (fuzzy_builder, num, filename);
+ IDE_TRACE_MSG ("Adding %u entries for %s", entries->len, filename);
+
for (guint i = 0; i < entries->len; i++)
{
IdeCodeIndexEntry *entry = g_ptr_array_index (entries, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]