Record memory usage continuously in OOM report

This commit is contained in:
世界
2026-09-02 20:01:03 +08:00
parent 0944cd9d7b
commit 21b8fcacc6
22 changed files with 1277 additions and 333 deletions
+1
View File
@@ -5,6 +5,7 @@ package oomkiller
import runtimeDebug "runtime/debug"
func (t *adaptiveTimer) notifyPressure() {
badCleanup()
runtimeDebug.FreeOSMemory()
t.access.Lock()
t.startLocked()