[gegl] gegl: Add gegl_eval_visitor_visit_pad() debug output
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Add gegl_eval_visitor_visit_pad() debug output
- Date: Sat, 6 Jun 2009 10:13:05 -0400 (EDT)
commit 6da2855f87ceafc78228fb556e6698837b890c5d
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Jun 6 16:14:30 2009 +0200
gegl: Add gegl_eval_visitor_visit_pad() debug output
Add gegl_eval_visitor_visit_pad() debug output that is enabled with
the env var GEGL_DEBUG=process. A typical use case is making sure that
the expected chain of nodes are processed.
---
gegl/process/gegl-eval-visitor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gegl/process/gegl-eval-visitor.c b/gegl/process/gegl-eval-visitor.c
index 1a9857e..4b762ee 100644
--- a/gegl/process/gegl-eval-visitor.c
+++ b/gegl/process/gegl-eval-visitor.c
@@ -22,6 +22,7 @@
#include <string.h>
#include "gegl.h"
+#include "gegl-debug.h"
#include "gegl-types-internal.h"
#include "gegl-eval-visitor.h"
#include "graph/gegl-node.h"
@@ -78,6 +79,7 @@ gegl_eval_visitor_visit_pad (GeglVisitor *self,
glong babl_time = babl_total_usecs;
/* Make the operation do it's actual processing */
+ GEGL_NOTE (GEGL_DEBUG_PROCESS, "Processing pad '%s' on \"%s\"", gegl_pad_get_name (pad), gegl_node_get_debug_name (node));
gegl_operation_process (operation, context, gegl_pad_get_name (pad),
&context->result_rect);
babl_time = babl_total_usecs - babl_time;
@@ -145,6 +147,7 @@ gegl_eval_visitor_visit_pad (GeglVisitor *self,
if (GEGL_IS_OPERATION_SINK (operation) &&
!gegl_operation_sink_needs_full (operation))
{
+ GEGL_NOTE (GEGL_DEBUG_PROCESS, "Processing pad '%s' on \"%s\"", gegl_pad_get_name (pad), gegl_node_get_debug_name (node));
gegl_operation_process (operation, context, "output",
&context->result_rect);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]