From a3e2c8323494b55f3c78781616a0a52c814d8460 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 27 Sep 2016 21:42:02 +0200 Subject: [PATCH] [truetype] Trace number of executed opcodes. * src/truetype/ttinterp.c (TT_RunIns): Implement it. --- ChangeLog | 8 +++++++- src/truetype/ttinterp.c | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d2b89e2b9..bccd2a8df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-09-27 Werner Lemberg + + [truetype] Trace number of executed opcodes. + + * src/truetype/ttinterp.c (TT_RunIns): Implement it. + 2016-09-27 Werner Lemberg [truetype] Speed up `TT_Load_Glyph'. @@ -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 diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index a5244ebb5..a379cf8b4 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_: