1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 11:30:39 +00:00
This commit is contained in:
astaxie
2014-04-11 16:08:43 +08:00
parent 05e5baaa9f
commit 4245521660
24 changed files with 10 additions and 47 deletions

View File

@ -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)