[babl] Removed instrumentation from babl_process.



commit c4e39a47fee21083a4fac85f001c2aeae5f1c078
Author: �yvind Kolås <pippin gimp org>
Date:   Tue Nov 24 00:56:56 2009 +0000

    Removed instrumentation from babl_process.
    
    This is part of the inner babl processing and should be as slim as
    posisble.

 babl/babl-fish-path.c  |    1 -
 babl/babl-fish-stats.c |    3 ---
 babl/babl-internal.c   |   12 +-----------
 3 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index 756e673..10ce65d 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -264,7 +264,6 @@ babl_fish_path (const Babl *source,
   babl->fish.destination          = destination;
   babl->fish.processings          = 0;
   babl->fish.pixels               = 0;
-  babl->fish.usecs                = 0;
   babl->fish.error                = BABL_MAX_COST_VALUE;
   babl->fish_path.cost            = BABL_MAX_COST_VALUE;
   babl->fish_path.loss            = BABL_MAX_COST_VALUE;
diff --git a/babl/babl-fish-stats.c b/babl/babl-fish-stats.c
index cb83b0e..7b853b1 100644
--- a/babl/babl-fish-stats.c
+++ b/babl/babl-fish-stats.c
@@ -60,7 +60,6 @@ table_destination_each (Babl *babl,
               fprintf (output_file, "<h3><span class='g'>path</span> %s <span class='g'>to</span> %s</h3>", source->instance.name, destination->instance.name);
               if (fish->fish.processings > 0)
                 {
-                  fprintf (output_file, "<span class='g'>usecs:</span>%li<br/>", fish->fish.usecs);
                   fprintf (output_file, "<span class='g'>Processings:</span>%i<br/>", fish->fish.processings);
                   fprintf (output_file, "<span class='g'>Pixels:</span>%li<br/>", fish->fish.pixels);
                 }
@@ -102,7 +101,6 @@ table_destination_each (Babl *babl,
 
             if (fish->fish.processings > 0)
               {
-                fprintf (output_file, "<span class='g'>usecs:</span>%li<br/>", fish->fish.usecs);
                 fprintf (output_file, "<span class='g'>Processings:</span>%i<br/>", fish->fish.processings);
                 fprintf (output_file, "<span class='g'>Pixels:</span>%li<br/>", fish->fish.pixels);
               }
@@ -123,7 +121,6 @@ table_destination_each (Babl *babl,
 
             if (fish->fish.processings > 0)
               {
-                fprintf (output_file, "<span class='g'>usecs:</span>%li<br/>", fish->fish.usecs);
                 fprintf (output_file, "<span class='g'>Processings:</span>%i<br/>", fish->fish.processings);
                 fprintf (output_file, "<span class='g'>Pixels:</span>%li<br/>", fish->fish.pixels);
               }
diff --git a/babl/babl-internal.c b/babl/babl-internal.c
index 7155bcf..eac0a95 100644
--- a/babl/babl-internal.c
+++ b/babl/babl-internal.c
@@ -75,8 +75,6 @@ babl_die (void)
   exit (-1);
 }
 
-long babl_total_usecs = 0;
-
 long
 babl_process (Babl *babl,
               void *source,
@@ -102,18 +100,9 @@ babl_process (Babl *babl,
       babl->class_type == BABL_FISH_SIMPLE)
     {
       long ret;
-      /* long ticks = babl_ticks (); */
       ret = babl_fish_process (babl, source, destination, n);
-
-      /* XX:
-      ticks -= babl_ticks ();
-      ticks *= -1L;
-
-      babl_total_usecs += ticks;
-      babl->fish.usecs += ticks;
       babl->fish.processings++;
       babl->fish.pixels += ret;
-      */
       return ret;
     }
 
@@ -134,6 +123,7 @@ babl_internal_init (void)
   babl_format_mutex = babl_mutex_new ();
 #if BABL_DEBUG_MEM
   babl_debug_mutex = babl_mutex_new ();
+  fprintf (stderr, "%p %p\n", babl_debug_mutex, babl_format_mutex);
 #endif
 }
 



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