HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Modulegranite-0.7.4.0GHC2021

Granite.Flame

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.

  • 2 types
  • 2 values
valueflameDiff :: FlameNode -> FlameOpts -> Text
#

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.