summaryrefslogtreecommitdiff
path: root/internal/statsengine/snapshot.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-23 20:16:15 +0300
committerPaul Buetow <paul@buetow.org>2026-05-23 20:16:15 +0300
commitf12756eecf2ea791ad894cc63380ed78f22f8797 (patch)
treee506ace88b6db5ba7371d2b7f421fe480ddf45f0 /internal/statsengine/snapshot.go
parent4e67c348ef1dc2c0d08f3e90c2affb555b205d0e (diff)
9c move Non-IO grouping policy from core stats/types into dashboard
Snapshot.NonIOFamilies, Snapshot.NonIOFamiliesCount, and types.IsNonIOSyscallFamily encoded a TUI tab concept in core packages. Move this filtering into internal/tui/dashboard/nonio.go as unexported helpers so the dashboard owns its own grouping policy and Snapshot.Families remains the neutral core API. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'internal/statsengine/snapshot.go')
-rw-r--r--internal/statsengine/snapshot.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/internal/statsengine/snapshot.go b/internal/statsengine/snapshot.go
index bec92fb..fa9c948 100644
--- a/internal/statsengine/snapshot.go
+++ b/internal/statsengine/snapshot.go
@@ -237,28 +237,6 @@ func (s Snapshot) FamiliesCount() int {
return len(s.families)
}
-// NonIOFamilies returns family rows outside the file-system/fd-focused family.
-func (s Snapshot) NonIOFamilies() []FamilySnapshot {
- rows := make([]FamilySnapshot, 0, len(s.families))
- for _, row := range s.families {
- if types.IsNonIOSyscallFamily(row.Family) {
- rows = append(rows, row)
- }
- }
- return rows
-}
-
-// NonIOFamiliesCount returns number of non-FS syscall-family rows.
-func (s Snapshot) NonIOFamiliesCount() int {
- count := 0
- for _, row := range s.families {
- if types.IsNonIOSyscallFamily(row.Family) {
- count++
- }
- }
- return count
-}
-
// TopNSyscalls returns at most n per-syscall rows in ranking order.
// Callers must treat returned data as read-only.
func (s Snapshot) TopNSyscalls(n int) []SyscallSnapshot {