diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-18 09:24:22 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-18 09:24:22 +0200 |
| commit | dbb98cd8dbd70dd92b8a541653e64c45b18348fa (patch) | |
| tree | f2faa385564a4700c608bcf8f2ffc638c1c0bd27 /integrationtests/doc.go | |
| parent | 630ea0ff27b8e9ff9287eaaf67660845406a19a6 (diff) | |
refactor: split TraceRuntimeBindings into RuntimePublisher and RuntimeState (task 427/ISP)
TraceRuntimeBindings mixed 4 setter methods (injecting data into TUI) with
4 getter methods (reading persistent TUI-owned state), violating ISP.
Split into two focused interfaces:
- RuntimePublisher: SetDashboardSnapshotSource, SetEventStreamSource,
SetLiveTrie, SetProbeManager — the write/inject side
- RuntimeState: StreamBuffer, Recorder, StreamSequencer, FilterEpoch
— the read/persistent-state side
TraceRuntimeBindings now embeds both, preserving all existing call sites.
RuntimePublisherFromContext() added so callers that only inject data do not
see the getter surface. Three such callers are narrowed: setupBPFModule,
tuiTestFlamesStarter, tuiTestLiveFlamesStarter.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'integrationtests/doc.go')
0 files changed, 0 insertions, 0 deletions
