Artifact 6f3780a0eacf61780ebf6b677db81b808525510f950abf56d54c6e715c1b8ea7:
- File internal/web/mempeak_test.go — part of check-in [0fbe3427b8] at 2026-10-23 15:36:15 on branch ops-peak-now — The memory peak includes the heap now (user: dmestas, size: 379) [annotate] [blame] [check-ins using] [more...]
package web import "testing" // The peak covers the reading on screen: a heap above every sample read // "392 MB heap, peak 182 MB" on the page. func TestThePeakIncludesTheHeapNow(t *testing.T) { if got := memPeak([]memSample{{Heap: 100}, {Heap: 182}}, 392); got != 392 { t.Errorf("FAIL: peak %d, want 392", got) } else { t.Log("ok: the peak includes the heap now") } }