platform: Improve OOM killer for iOS

This commit is contained in:
世界
2026-02-27 13:35:58 +08:00
parent 21a1512e6c
commit 65150f5cc3
8 changed files with 341 additions and 25 deletions

View File

@@ -409,7 +409,7 @@ func (s *StartedService) SubscribeStatus(request *SubscribeStatusRequest, server
func (s *StartedService) readStatus() *Status {
var status Status
status.Memory = memory.Inuse()
status.Memory = memory.Total()
status.Goroutines = int32(runtime.NumGoroutine())
s.serviceAccess.RLock()
nowService := s.instance