Commit a3e2c8323494b55f3c78781616a0a52c814d8460

Werner Lemberg 2016-09-27T21:42:02

[truetype] Trace number of executed opcodes. * src/truetype/ttinterp.c (TT_RunIns): Implement it.

diff --git a/ChangeLog b/ChangeLog
index d2b89e2..bccd2a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2016-09-27  Werner Lemberg  <wl@gnu.org>
 
+	[truetype] Trace number of executed opcodes.
+
+	* src/truetype/ttinterp.c (TT_RunIns): Implement it.
+
+2016-09-27  Werner Lemberg  <wl@gnu.org>
+
 	[truetype] Speed up `TT_Load_Glyph'.
 
 	This avoids additional calls to `tt_face_lookup_table' for the
@@ -10,7 +16,7 @@
 	(TT_FaceRec): ... this structure.
 	* src/truetype/ttgload.c (load_truetype_glyph): Updated.
 	(tt_loader_init): Move initialization of `glyf_offset' to ...
-	* src/truetype/ttpload.c (tt_face_load_loca): .. this function.
+	* src/truetype/ttpload.c (tt_face_load_loca): ... this function.
 
 2016-09-27  Werner Lemberg  <wl@gnu.org>
 
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index a5244eb..a379cf8 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -8382,6 +8382,7 @@
     } while ( !exc->instruction_trap );
 
   LNo_Error_:
+    FT_TRACE4(( "  %d instructions executed\n", ins_counter ));
     return FT_Err_Ok;
 
   LErrorCodeOverflow_: