Allocation view helpers for formatting and rendering allocation data.
Provides functions for formatting call sites and object types, as well as ASCII treemap rendering for allocation visualization.
Allocation view helpers for formatting and rendering allocation data. Provides functions for formatting call sites and object types, as well as ASCII treemap rendering for allocation visualization.
(format-call-site call-site)(format-call-site {:keys [call-class call-method call-file call-line]}
object-types)Format a call site map for display. Returns a string like 'class.method (file:line)'. When call-method is nil (object-type fallback), shows just the class. When call-site is not useful but object-types provided, shows those.
Format a call site map for display. Returns a string like 'class.method (file:line)'. When call-method is nil (object-type fallback), shows just the class. When call-site is not useful but object-types provided, shows those.
(format-object-types object-types)Format object types set for display. Returns a comma-separated string of simplified type names.
Format object types set for display. Returns a comma-separated string of simplified type names.
(render-ascii-treemap treemap-data)(render-ascii-treemap treemap-data opts)Render an allocation treemap as an ASCII tree string.
treemap-data should be a :criterium/allocation-treemap map with :root, :group-by, :size-by.
Options: :bar-width - max bar characters (default 20) :depth-limit - max nesting depth to display, nil = unlimited (default nil) :min-percent - hide nodes below this % of root total (default 1) :name-width - column width for names (default 40)
Render an allocation treemap as an ASCII tree string. treemap-data should be a :criterium/allocation-treemap map with :root, :group-by, :size-by. Options: :bar-width - max bar characters (default 20) :depth-limit - max nesting depth to display, nil = unlimited (default nil) :min-percent - hide nodes below this % of root total (default 1) :name-width - column width for names (default 40)
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |