try a different memory tracking approach

This commit is contained in:
2025-03-22 21:21:58 +01:00
parent b73f1c8f60
commit daf6f13542
2 changed files with 87 additions and 76 deletions

View File

@@ -220,7 +220,7 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) {
log.Errorf("error getting PGID: %v", err)
}
var peakMem int
var peakMem int64
done := make(chan bool)
go pollMemoryUsage(pgid, 1*time.Second, done, &peakMem)