From 17c1cda46bf3c14b7431a2cf3ee2fa042672ffad Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 26 May 2026 22:33:59 +0300 Subject: flamegraph: add height field methods to Configurator (ro) --- internal/tui/flamegraph/model.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/tui') diff --git a/internal/tui/flamegraph/model.go b/internal/tui/flamegraph/model.go index 3c63c3e..7fb3983 100644 --- a/internal/tui/flamegraph/model.go +++ b/internal/tui/flamegraph/model.go @@ -94,11 +94,15 @@ type Snapshotter interface { type Configurator interface { // Fields returns the current ordered list of grouping fields (e.g. ["comm","path"]). Fields() []string + // HeightField returns the active frame-height metric (e.g. "bytes", "duration"). + HeightField() string // CountField returns the active aggregation metric name (e.g. "count", "bytes"). CountField() string // Reconfigure replaces the grouping fields and resets accumulated data so a // new baseline begins with the new field order. Reconfigure([]string) error + // SetHeightField changes the frame-height metric and starts a fresh baseline. + SetHeightField(string) error // SetCountField changes the active aggregation metric and starts a fresh baseline. SetCountField(string) error // Reset clears all accumulated data so the next ingested event starts a new baseline. -- cgit v1.2.3