Skip to content

Commit

Permalink
Expose global_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukstafi committed Feb 22, 2024
1 parent 7ef61d8 commit d15396d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions minidebug_runtime.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ module type Debug_runtime = sig
val get_entry_id : unit -> int
val max_nesting_depth : int option ref
val max_num_children : int option ref
val global_prefix : string
end

let exceeds ~value ~limit = match limit with None -> false | Some limit -> limit < value
Expand Down Expand Up @@ -257,6 +258,8 @@ module Flushing (Log_to : Debug_ch) : Debug_runtime = struct
fun () ->
incr global_id;
!global_id

let global_prefix = global_prefix
end

let default_html_config = PrintBox_html.Config.(tree_summary true default)
Expand Down Expand Up @@ -774,6 +777,8 @@ module PrintBox (Log_to : Debug_ch) = struct
fun () ->
incr global_id;
!global_id

let global_prefix = global_prefix
end

let debug_file ?(time_tagged = false) ?(elapsed_times = elapsed_default)
Expand Down
1 change: 1 addition & 0 deletions minidebug_runtime.mli
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ module type Debug_runtime = sig
val get_entry_id : unit -> int
val max_nesting_depth : int option ref
val max_num_children : int option ref
val global_prefix : string
end

(** The output is flushed line-at-a-time, so no output should be lost if the traced program crashes.
Expand Down

0 comments on commit d15396d

Please sign in to comment.