equal
deleted
inserted
replaced
56 val factor = Time.toReal (#cpu timing) / Time.toReal (#elapsed timing) |
56 val factor = Time.toReal (#cpu timing) / Time.toReal (#elapsed timing) |
57 |> Real.fmt (StringCvt.FIX (SOME 2)); |
57 |> Real.fmt (StringCvt.FIX (SOME 2)); |
58 |
58 |
59 val timing_props = |
59 val timing_props = |
60 [("threads", threads)] @ Markup.timing_properties timing @ [("factor", factor)]; |
60 [("threads", threads)] @ Markup.timing_properties timing @ [("factor", factor)]; |
61 val _ = Protocol_Message.marker "Timing" timing_props; |
61 val _ = Output.protocol_message (Markup.session_timing :: timing_props) []; |
62 val _ = |
62 val _ = |
63 if verbose then |
63 if verbose then |
64 Output.physical_stderr ("Timing " ^ session_name ^ " (" ^ |
64 Output.physical_stderr ("Timing " ^ session_name ^ " (" ^ |
65 threads ^ " threads, " ^ Timing.message timing ^ ", factor " ^ factor ^ ")\n") |
65 threads ^ " threads, " ^ Timing.message timing ^ ", factor " ^ factor ^ ")\n") |
66 else (); |
66 else (); |
91 | NONE => ()) |
91 | NONE => ()) |
92 else () |
92 else () |
93 end |
93 end |
94 else if function = Markup.theory_timing then |
94 else if function = Markup.theory_timing then |
95 Protocol_Message.marker (#2 function) args |
95 Protocol_Message.marker (#2 function) args |
|
96 else if function = Markup.session_timing then |
|
97 Protocol_Message.marker "Timing" args |
96 else |
98 else |
97 (case Markup.dest_loading_theory props of |
99 (case Markup.dest_loading_theory props of |
98 SOME name => Protocol_Message.marker_text "loading_theory" name |
100 SOME name => Protocol_Message.marker_text "loading_theory" name |
99 | NONE => Export.protocol_message props output) |
101 | NONE => Export.protocol_message props output) |
100 | [] => raise Output.Protocol_Message props); |
102 | [] => raise Output.Protocol_Message props); |