[gimp] app: add a timer to gimp_gegl_convert_color_profile()



commit 6b1ed42912db7c3e87c180bac47a81cae5bef4bf
Author: Michael Natterer <mitch gimp org>
Date:   Sun Sep 3 15:17:58 2017 +0200

    app: add a timer to gimp_gegl_convert_color_profile()

 app/gegl/gimp-gegl-loops.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-loops.c b/app/gegl/gimp-gegl-loops.c
index 1b20654..62a2c55 100644
--- a/app/gegl/gimp-gegl-loops.c
+++ b/app/gegl/gimp-gegl-loops.c
@@ -36,6 +36,7 @@
 #include "gimp-gegl-loops.h"
 #include "gimp-gegl-loops-sse2.h"
 
+#include "core/gimp-utils.h"
 #include "core/gimpprogress.h"
 
 
@@ -801,10 +802,14 @@ gimp_gegl_convert_color_profile (GeglBuffer               *src_buffer,
                                   G_CALLBACK (gimp_progress_set_value),
                                   progress);
 
+      GIMP_TIMER_START ();
+
       gimp_color_transform_process_buffer (transform,
                                            src_buffer,  src_rect,
                                            dest_buffer, dest_rect);
 
+      GIMP_TIMER_END ("converting buffer");
+
       g_object_unref (transform);
     }
   else


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