src/HOL/Tools/record_package.ML
changeset 25179 b84f3c3c27f2
parent 25070 e2a39b6526b0
child 25705 45a2ffc5911e
equal deleted inserted replaced
25178:1cd45207dd3f 25179:b84f3c3c27f2
    23 
    23 
    24 signature RECORD_PACKAGE =
    24 signature RECORD_PACKAGE =
    25 sig
    25 sig
    26   include BASIC_RECORD_PACKAGE
    26   include BASIC_RECORD_PACKAGE
    27   val quiet_mode: bool ref
    27   val quiet_mode: bool ref
       
    28   val timing: bool ref
    28   val record_quick_and_dirty_sensitive: bool ref
    29   val record_quick_and_dirty_sensitive: bool ref
    29   val updateN: string
    30   val updateN: string
    30   val updN: string
    31   val updN: string
    31   val ext_typeN: string
    32   val ext_typeN: string
    32   val extN: string
    33   val extN: string
   119 fun trace_term str t =
   120 fun trace_term str t =
   120     tracing (str ^ (Display.raw_string_of_term t));
   121     tracing (str ^ (Display.raw_string_of_term t));
   121 
   122 
   122 (* timing *)
   123 (* timing *)
   123 
   124 
       
   125 val timing = ref false;
   124 fun timeit_msg s x = if !timing then (warning s; timeit x) else x ();
   126 fun timeit_msg s x = if !timing then (warning s; timeit x) else x ();
   125 fun timing_msg s = if !timing then warning s else ();
   127 fun timing_msg s = if !timing then warning s else ();
   126 
   128 
   127 (* syntax *)
   129 (* syntax *)
   128 
   130