diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-26 22:31:40 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-26 22:31:40 +0300 |
| commit | 6bfa0031cc7c903c16baaca2d0f504be26fb828c (patch) | |
| tree | 0d3c002eaed4c6e02f12cbffd7054bd07989e0fe /internal/tui/flamegraph/async_refresh_test.go | |
| parent | f42d4f4f0b9d3faf38d2f3c3a9753a03440cdd24 (diff) | |
flamegraph: add LiveTrie height metric ingestion (task qo)
Diffstat (limited to 'internal/tui/flamegraph/async_refresh_test.go')
| -rw-r--r-- | internal/tui/flamegraph/async_refresh_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
