[gs-cvs] rev 8532 - branches/mtrender/src

ray at ghostscript.com ray at ghostscript.com
Mon Feb 18 23:47:11 PST 2008


Author: ray
Date: 2008-02-18 23:47:11 -0800 (Mon, 18 Feb 2008)
New Revision: 8532

Modified:
   branches/mtrender/src/zdevice.c
Log:
Add a diagnostic from -Z: that prints out the time that Outputpage is
started as well as when it ends to isolate clist rendering time and
output time from clist writing and parsing time.

EXPECTED DIFFERENCES:

None.


Modified: branches/mtrender/src/zdevice.c
===================================================================
--- branches/mtrender/src/zdevice.c	2008-02-18 20:28:59 UTC (rev 8531)
+++ branches/mtrender/src/zdevice.c	2008-02-19 07:47:11 UTC (rev 8532)
@@ -342,6 +342,11 @@
 
     check_type(op[-1], t_integer);
     check_type(*op, t_boolean);
+    if (gs_debug[':']) {
+	gs_main_instance *minst = get_minst_from_memory((gs_memory_t *)i_ctx_p->memory.current->non_gc_memory);
+
+	print_resource_usage(minst, &(i_ctx_p->memory), "Outputpage start");
+    }
 #ifdef PSI_INCLUDED
     code = ps_end_page_top(imemory,
 			   (int)op[-1].value.intval, op->value.boolval);
@@ -355,7 +360,7 @@
     if (gs_debug[':']) {
 	gs_main_instance *minst = get_minst_from_memory((gs_memory_t *)i_ctx_p->memory.current->non_gc_memory);
 
-	print_resource_usage(minst, &(i_ctx_p->memory), "Outputpage");
+	print_resource_usage(minst, &(i_ctx_p->memory), "Outputpage end");
     }
     return 0;
 }



More information about the gs-cvs mailing list