diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-26 22:33:59 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-26 22:33:59 +0300 |
| commit | 17c1cda46bf3c14b7431a2cf3ee2fa042672ffad (patch) | |
| tree | 05835f54cbc65d54cbd153f63b0b6dc1467aad1f /internal/tui/flamegraph/model.go | |
| parent | 6bfa0031cc7c903c16baaca2d0f504be26fb828c (diff) | |
flamegraph: add height field methods to Configurator (ro)
Diffstat (limited to 'internal/tui/flamegraph/model.go')
| -rw-r--r-- | internal/tui/flamegraph/model.go | 4 |
1 files changed, 4 insertions, 0 deletions
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. |
