package ppx_minidebug

  1. Overview
  2. Docs

Module Minidebug_client.RendererSource

Tree renderer for terminal output

Sourcetype tree_node = {
  1. entry : Query.entry;
  2. children : tree_node list;
}
Sourceval build_tree : Query.entry list -> tree_node list

Build tree structure from flat entry list

Sourceval format_elapsed_ns : int -> string

Format elapsed time in human-readable units

Sourceval render_tree : ?show_scope_ids:bool -> ?show_times:bool -> ?max_depth:int option -> ?values_first_mode:bool -> tree_node list -> string

Render tree to string with full details. When values_first_mode is true, result values become headers with location/message as children.

Sourceval render_compact : tree_node list -> string

Render compact summary (just function calls)

Sourceval render_roots : ?show_times:bool -> ?with_values:bool -> Query.entry list -> string

Render root entries as a flat list. When with_values is true, shows immediate children values.

Sourceval elapsed_time : Query.entry -> int option

Calculate elapsed time for an entry in nanoseconds