1
0
Fork 0
forked from External/ergo

urgh this should not even be commited yet, this will all be squashed out

This commit is contained in:
Daniel Oaks 2016-06-17 22:17:42 +10:00
parent dbca03e948
commit e83283e7fd
7 changed files with 1117 additions and 1124 deletions

View file

@ -9,15 +9,16 @@ import (
"runtime/debug"
"runtime/pprof"
"time"
"github.com/DanielOaks/girc-go/ircmsg"
)
func (msg *DebugCommand) HandleServer(server *Server) {
client := msg.Client()
func debugHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
if !client.flags[Operator] {
return
}
switch msg.subCommand {
switch msg.Params[0] {
case "GCSTATS":
stats := debug.GCStats{
Pause: make([]time.Duration, 10),