loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Include heap pprof in diagnosis report to help debugging memory leaks (#28596)

authored by

wxiaoguang and committed by
GitHub
330aab47 33439b73

+7
+7
routers/web/admin/diagnosis.go
··· 58 58 return 59 59 } 60 60 _ = pprof.Lookup("goroutine").WriteTo(f, 1) 61 + 62 + f, err = zipWriter.CreateHeader(&zip.FileHeader{Name: "heap.dat", Method: zip.Deflate, Modified: time.Now()}) 63 + if err != nil { 64 + ctx.ServerError("Failed to create zip file", err) 65 + return 66 + } 67 + _ = pprof.Lookup("heap").WriteTo(f, 0) 61 68 }