Explorar o código

add timer around HL's interpreter

Simon Krajewski %!s(int64=8) %!d(string=hai) anos
pai
achega
2ca1c06d0e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/generators/genhl.ml

+ 3 - 1
src/generators/genhl.ml

@@ -3748,7 +3748,9 @@ let generate com =
 	end;
 	if Common.defined com Define.Interp then
 		try
-			let ctx = Hlinterp.create true in
+			let t = Common.timer ["generate";"hl";"interp"] in
+			let ctx = Hlinterp.create false in
 			Hlinterp.add_code ctx code;
+			t();
 		with
 			Failure msg -> abort msg null_pos