summaryrefslogtreecommitdiff
path: root/internal/statsengine/syscall.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-12 23:09:00 +0300
committerPaul Buetow <paul@buetow.org>2026-05-12 23:09:00 +0300
commitfa439f7f6f145b4a47aeb107619e9efbd07bc9d8 (patch)
treecb8590c4a4c808c30bc94e867b98599a54ab8f90 /internal/statsengine/syscall.go
parent15338e6d4253fc8f4871a68ddcc41c6e3ce58220 (diff)
split LiveTrieSource into Snapshotter and Configurator (ISP)
Applies the Interface Segregation Principle to LiveTrieSource in both internal/runtime and internal/tui/flamegraph. The monolithic interface is replaced by two focused sub-interfaces — Snapshotter (read-only: Version, SnapshotJSON, SnapshotTree) and Configurator (mutating: Fields, CountField, Reconfigure, SetCountField, Reset) — which LiveTrieSource then embeds so all existing consumers continue to compile unchanged. The buildSnapshotMsg helper is narrowed to Snapshotter since it only reads snapshot data, preventing accidental mutation from the background goroutine. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/statsengine/syscall.go')
0 files changed, 0 insertions, 0 deletions