mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 15:14:24 +00:00
This commit is contained in:
parent
564068aa99
commit
f2add36a29
@ -58,4 +58,11 @@ func MonitorDiagnosis(ctx *context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
_ = pprof.Lookup("goroutine").WriteTo(f, 1)
|
_ = pprof.Lookup("goroutine").WriteTo(f, 1)
|
||||||
|
|
||||||
|
f, err = zipWriter.CreateHeader(&zip.FileHeader{Name: "heap.dat", Method: zip.Deflate, Modified: time.Now()})
|
||||||
|
if err != nil {
|
||||||
|
ctx.ServerError("Failed to create zip file", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_ = pprof.Lookup("heap").WriteTo(f, 0)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user