diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 22:29:11 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 22:29:11 +0200 |
| commit | 63b9ad7c7692b3bedb4d0051c080946e38e058f9 (patch) | |
| tree | 3285479bdee924913ff622476ac74125232aae56 /internal/tui/flamegraph/model.go | |
| parent | 270c4b422cfc5e7588b7045276588e9f043f85e3 (diff) | |
task 355: add terminal flamegraph layout renderer
Diffstat (limited to 'internal/tui/flamegraph/model.go')
| -rw-r--r-- | internal/tui/flamegraph/model.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/tui/flamegraph/model.go b/internal/tui/flamegraph/model.go index ac9b5af..637ba11 100644 --- a/internal/tui/flamegraph/model.go +++ b/internal/tui/flamegraph/model.go @@ -120,6 +120,8 @@ func (m *Model) RefreshFromLiveTrie() bool { if err := json.Unmarshal(payload, &snapshot); err != nil { return false } + m.targetFrames = BuildTerminalLayout(&snapshot, m.width, m.height) + m.frames = append(m.frames[:0], m.targetFrames...) m.snapshot = &snapshot m.lastVersion = version return true |
