Profile visualization for call trees, treemaps, and most-called methods.
Provides Vega and Vega-Lite specs for: - Allocation treemaps showing memory usage by type - Call tree visualizations (hierarchical tree and flame chart) - Most-called method bar charts
Profile visualization for call trees, treemaps, and most-called methods. Provides Vega and Vega-Lite specs for: - Allocation treemaps showing memory usage by type - Call tree visualizations (hierarchical tree and flame chart) - Most-called method bar charts
(call-tree-flame-vega-spec call-tree total-calls opts)Build a Vega spec for flame chart visualization of call graph.
Displays the call tree as a flame chart where horizontal width represents call count (not time). Each level shows methods called, with children stacked below their parent.
Parameters: call-tree - The call tree map with :class, :method, :call-count, :children total-calls - Total call count for percentage calculation opts - Display options: :width (default 700) :height (default 400)
Returns a full Vega spec with:
Build a Vega spec for flame chart visualization of call graph.
Displays the call tree as a flame chart where horizontal width represents
call count (not time). Each level shows methods called, with children
stacked below their parent.
Parameters:
call-tree - The call tree map with :class, :method, :call-count, :children
total-calls - Total call count for percentage calculation
opts - Display options:
:width (default 700)
:height (default 400)
Returns a full Vega spec with:
- Custom flame layout computed in Clojure
- rect marks with width proportional to call count
- Color by class for visual grouping
- tooltip showing method, call count, percentage(call-tree-tree-vega-spec call-tree opts)Build a Vega spec for hierarchical tree visualization of call graph.
Displays the call tree as a top-down tree diagram where node size represents call count. Uses Vega's tree layout for proper hierarchical positioning.
Parameters: call-tree - The call tree map with :class, :method, :call-count, :children opts - Display options: :width (default 700) :height (default 500)
Returns a full Vega spec with:
Build a Vega spec for hierarchical tree visualization of call graph.
Displays the call tree as a top-down tree diagram where node size represents
call count. Uses Vega's tree layout for proper hierarchical positioning.
Parameters:
call-tree - The call tree map with :class, :method, :call-count, :children
opts - Display options:
:width (default 700)
:height (default 500)
Returns a full Vega spec with:
- stratify transform to build hierarchy
- tree layout for positioning
- symbol marks sized by call count
- link paths connecting parent to children
- tooltip on hover showing method, call count, file:line(most-called-vega-lite-spec most-called-data opts)Build a Vega-Lite horizontal bar chart spec for most-called methods.
Parameters: most-called-data - The :most-called analysis result map opts - Display options: :width (default 600) :height (default: computed from number of items)
Returns a Vega-Lite spec with:
Build a Vega-Lite horizontal bar chart spec for most-called methods.
Parameters:
most-called-data - The :most-called analysis result map
opts - Display options:
:width (default 600)
:height (default: computed from number of items)
Returns a Vega-Lite spec with:
- Horizontal bars showing call counts
- Methods sorted by call count descending
- Tooltip showing full class.method, calls, and location(treemap-vega-spec treemap-data opts)Build a complete Vega spec for treemap visualization.
Takes treemap-data (a :criterium/allocation-treemap map from analysis) and opts map containing display options.
Parameters: treemap-data - The allocation treemap map with :root containing hierarchy opts - Display options: :width (default 700) :height (default 400) :color-scheme (default "tableau10")
Returns a full Vega spec (not Vega-Lite) using:
Build a complete Vega spec for treemap visualization.
Takes treemap-data (a :criterium/allocation-treemap map from analysis)
and opts map containing display options.
Parameters:
treemap-data - The allocation treemap map with :root containing hierarchy
opts - Display options:
:width (default 700)
:height (default 400)
:color-scheme (default "tableau10")
Returns a full Vega spec (not Vega-Lite) using:
- stratify transform to build hierarchy from flat data
- treemap transform with squarify tiling
- rect marks sized by x0/x1/y0/y1
- color by first-level category
- tooltip on hover showing name, value (formatted bytes), pathcljdoc 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 |