mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 11:30:39 +00:00
fix #576
This commit is contained in:
@ -48,7 +48,7 @@ func ProcessInput(input string, w io.Writer) {
|
||||
// record memory profile in pprof
|
||||
func MemProf() {
|
||||
if f, err := os.Create("mem-" + strconv.Itoa(pid) + ".memprof"); err != nil {
|
||||
log.Fatal("record memory profile failed: %v", err)
|
||||
log.Fatal("record memory profile failed: ", err)
|
||||
} else {
|
||||
runtime.GC()
|
||||
pprof.WriteHeapProfile(f)
|
||||
|
Reference in New Issue
Block a user