[gnome-builder] clang: add some tracing



commit e3b30b1b890efd52ac31bbeb014a3f1441400ba3
Author: Christian Hergert <christian hergert me>
Date:   Sat Mar 28 14:43:06 2015 -0700

    clang: add some tracing

 libide/clang/ide-clang-service.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libide/clang/ide-clang-service.c b/libide/clang/ide-clang-service.c
index 39e6215..58b43fc 100644
--- a/libide/clang/ide-clang-service.c
+++ b/libide/clang/ide-clang-service.c
@@ -452,13 +452,17 @@ ide_clang_service_get_translation_unit_async (IdeClangService     *self,
     {
       if (ide_clang_translation_unit_get_sequence (cached) >= min_sequence)
         {
+          IDE_TRACE_MSG ("cache hit");
           g_task_return_pointer (task, g_object_ref (cached), g_object_unref);
           return;
         }
     }
 
   if (ide_clang_service_attach_in_flight (self, file, task))
-    return;
+    {
+      IDE_TRACE_MSG ("waiting for in flight translation unit");
+      return;
+    }
 
   gfile = ide_file_get_file (file);
 
@@ -499,6 +503,8 @@ ide_clang_service_get_translation_unit_async (IdeClangService     *self,
    * Request the build flags necessary to build this module from the build system.
    */
 
+  IDE_TRACE_MSG ("Requesting build of translation unit");
+
   ide_build_system_get_build_flags_async (build_system,
                                           file,
                                           cancellable,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]