1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 00:18:31 +00:00

Fix bunching commands and enable

This commit is contained in:
Kane York 2015-11-01 13:17:35 -08:00
parent 7c89ed98e3
commit f9323413aa
4 changed files with 43 additions and 16 deletions

View file

@ -61,11 +61,18 @@ func commandLineConsole() {
if val.Mallocs == 0 {
continue
}
shell.Print(fmt.Sprintf("%5d: %6d outstanding (%d total)\n", val.Size, val.Mallocs - val.Frees, val.Mallocs))
shell.Print(fmt.Sprintf("%5d: %6d outstanding (%d total)\n", val.Size, val.Mallocs-val.Frees, val.Mallocs))
}
shell.Println(m.NumGC, "collections occurred")
return "", nil
})
shell.Register("panic", func(args ...string) (string, error) {
go func() {
panic("requested panic")
}()
return "", nil
})
shell.Start()
}