From 6bfa0031cc7c903c16baaca2d0f504be26fb828c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 26 May 2026 22:31:40 +0300 Subject: flamegraph: add LiveTrie height metric ingestion (task qo) --- internal/tui/flamegraph/async_refresh_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/tui/flamegraph/async_refresh_test.go') diff --git a/internal/tui/flamegraph/async_refresh_test.go b/internal/tui/flamegraph/async_refresh_test.go index d6027de..73c1889 100644 --- a/internal/tui/flamegraph/async_refresh_test.go +++ b/internal/tui/flamegraph/async_refresh_test.go @@ -31,7 +31,7 @@ func TestRefreshFromLiveTrieCmdNilWhenNoTrie(t *testing.T) { } func TestRefreshFromLiveTrieCmdProducesSnapshotReady(t *testing.T) { - trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count") + trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count") ingestTwoEventsForAsync(t, trie) m := NewModel(trie) m.width = 120 @@ -65,7 +65,7 @@ func TestRefreshFromLiveTrieCmdProducesSnapshotReady(t *testing.T) { } func TestRefreshFromLiveTrieCmdCoalescesInFlight(t *testing.T) { - trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count") + trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count") ingestTwoEventsForAsync(t, trie) m := NewModel(trie) m.width = 80 @@ -80,7 +80,7 @@ func TestRefreshFromLiveTrieCmdCoalescesInFlight(t *testing.T) { } func TestRefreshFromLiveTrieCmdSkippedWhileUserDrives(t *testing.T) { - trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count") + trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count") ingestTwoEventsForAsync(t, trie) m := NewModel(trie) m.width = 80 @@ -106,7 +106,7 @@ func TestRefreshFromLiveTrieCmdSkippedWhileUserDrives(t *testing.T) { } func TestSnapshotReadyHandlerSnapsToTargetWhileDriving(t *testing.T) { - trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count") + trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count") ingestTwoEventsForAsync(t, trie) m := NewModel(trie) m.width = 120 @@ -144,7 +144,7 @@ func TestSnapshotReadyHandlerSnapsToTargetWhileDriving(t *testing.T) { } func TestViewCacheReusesContentWhenStateUnchanged(t *testing.T) { - trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count") + trie := coreflamegraph.NewLiveTrie([]string{"comm", "path"}, "count", "count") ingestTwoEventsForAsync(t, trie) m := NewModel(trie) m.width = 120 -- cgit v1.2.3