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:
parent
7c89ed98e3
commit
f9323413aa
4 changed files with 43 additions and 16 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue