| Copyright | (c) 2025 |
|---|---|
| License | MIT |
| Maintainer | mschavinda@gmail.com |
| Safe Haskell | None |
| Language | GHC2021 |
Granite.Flame
Description
Differential flame/icicle graphs. A FlameNode tree carries, per frame, the
summed positive delta (fnPos, an increase) and the magnitude of the summed
negative delta (fnNeg, a decrease, kept non-negative). flameDiff lays the
tree out top→down by depth and emits a standalone <svg> document.
A frame's width is its churn (fnPos + fnNeg) relative to the root churn.
Within a frame a red part (the increase) and a blue part (the decrease) are
drawn side by side, so a relocation — equal +x/-x — reads as half-red/
half-blue rather than as a net regression.
Documentation
Constructors
| FlameNode | |
Instances
Constructors
| FlameOpts | |
Instances
flameDiff :: FlameNode -> FlameOpts -> Text Source #
Render a differential flame graph as a full standalone <svg> document.
Rows go top→down by depth; a frame's width is proportional to its churn over the
root churn; children are laid left→right sorted by descending churn; frames
narrower than foMinPx are dropped and recursion stops past foMaxDepth.