Liking cljdoc? Tell your friends :D

callgraph.data

Pure helpers for building, normalizing, and rendering terminal callgraph trace data.

Pure helpers for building, normalizing, and rendering terminal callgraph trace data.
raw docstring

child-return-summaryclj

(child-return-summary node)

Returns a bracketed summary of direct child return values for node.

Returns a bracketed summary of direct child return values for `node`.
sourceraw docstring

display-valueclj

(display-value value)

Returns a stable, printable representation of value for node labels.

Returns a stable, printable representation of `value` for node labels.
sourceraw docstring

duration->textclj

(duration->text {:keys [duration-ns]})

Formats a duration in nanoseconds for compact display.

Formats a duration in nanoseconds for compact display.
sourceraw docstring

empty-traceclj

(empty-trace)

Returns an empty trace map ready to receive runtime call frames.

Returns an empty trace map ready to receive runtime call frames.
sourceraw docstring

fixed-2clj

(fixed-2 n)

Formats n with at most two decimal places.

Formats `n` with at most two decimal places.
sourceraw docstring

node->return-linesclj

(node->return-lines node style depth)

Returns leaf-to-root terminal lines for node and its descendants.

Returns leaf-to-root terminal lines for `node` and its descendants.
sourceraw docstring

node->terminal-linesclj

(node->terminal-lines node style prefix last? options)

Returns formatted terminal lines for node and its descendants.

Returns formatted terminal lines for `node` and its descendants.
sourceraw docstring

node->treeclj

(node->tree trace node-id)

Converts the trace node identified by node-id into nested tree data.

Converts the trace node identified by `node-id` into nested tree data.
sourceraw docstring

node-detailclj

(node-detail {:keys [status return throwable-class throwable-message] :as node})

Returns a compact status suffix for a terminal-rendered node.

Returns a compact status suffix for a terminal-rendered node.
sourceraw docstring

node-labelclj

(node-label {:keys [name args]})

Returns the (fn-name arg1 arg2 ..) label for a trace node.

Returns the `(fn-name arg1 arg2 ..)` label for a trace node.
sourceraw docstring

pop-frameclj

(pop-frame trace frame-id outcome)

Marks frame-id complete with outcome and pops it from the active stack.

Marks `frame-id` complete with `outcome` and pops it from the active stack.
sourceraw docstring

public-traceclj

(public-trace trace)

Drops internal bookkeeping from trace while preserving the tree structure.

Drops internal bookkeeping from `trace` while preserving the tree structure.
sourceraw docstring

push-frameclj

(push-frame trace frame)

Adds a running frame to trace and returns [updated-trace frame-id].

Adds a running frame to `trace` and returns `[updated-trace frame-id]`.
sourceraw docstring

readable-nameclj

(readable-name name)

Converts a function or macro name into a compact display string.

Converts a function or macro name into a compact display string.
sourceraw docstring

return-flow-labelclj

(return-flow-label node style)

Returns a leaf-to-root label showing how child results combine into node.

Returns a leaf-to-root label showing how child results combine into `node`.
sourceraw docstring

return-value-labelclj

(return-value-label {:keys [status return throwable-class throwable-message]})

Returns the compact return label for node.

Returns the compact return label for `node`.
sourceraw docstring

terminal-labelclj

(terminal-label node {:keys [show-meta?] :or {show-meta? true}})

Returns the terminal label for node according to options.

Returns the terminal label for `node` according to `options`.
sourceraw docstring

terminal-stylesclj

Connector strings used by terminal tree rendering.

Connector strings used by terminal tree rendering.
sourceraw docstring

trace->return-linesclj

(trace->return-lines trace)
(trace->return-lines trace {:keys [style] :or {style :unicode}})

Converts trace into leaf-to-root return flow lines.

Options may include :style (:unicode or :ascii).

Converts `trace` into leaf-to-root return flow lines.

Options may include `:style` (`:unicode` or `:ascii`).
sourceraw docstring

trace->return-textclj

(trace->return-text trace)
(trace->return-text trace options)

Renders trace as a leaf-to-root return flow string.

Renders `trace` as a leaf-to-root return flow string.
sourceraw docstring

trace->terminal-linesclj

(trace->terminal-lines trace)
(trace->terminal-lines trace {:keys [style] :or {style :unicode} :as options})

Converts trace into terminal tree lines.

Options may include :style (:unicode or :ascii) and :show-meta?.

Converts `trace` into terminal tree lines.

Options may include `:style` (`:unicode` or `:ascii`) and `:show-meta?`.
sourceraw docstring

trace->textclj

(trace->text trace)
(trace->text trace options)

Renders trace as a newline-delimited terminal tree string.

Renders `trace` as a newline-delimited terminal tree string.
sourceraw docstring

trace->treeclj

(trace->tree trace)

Converts a public or internal trace map into a vector of root tree nodes.

Converts a public or internal trace map into a vector of root tree nodes.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close