HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

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.