profiling: observe no_timing;
authorwenzelm
Tue, 19 Jun 2007 23:15:59 +0200
changeset 23426 d0efa182109f
parent 23425 b74315510f85
child 23427 26202f4e663d
profiling: observe no_timing;
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Tue Jun 19 23:15:57 2007 +0200
+++ b/src/Pure/Isar/toplevel.ML	Tue Jun 19 23:15:59 2007 +0200
@@ -680,7 +680,7 @@
 
     val (result, opt_exn) =
        state |> (apply_trans int pos trans
-        |> (if ! profiling > 0 then do_profiling else I)
+        |> (if ! profiling > 0 then do_profiling andalso not no_timing else I)
         |> (if ! profiling > 0 orelse ! timing andalso not no_timing then do_timing else I));
     val _ =
       if int andalso not (! quiet) andalso exists (member (op =) print) ("" :: ! print_mode)