func sigh() { for s := range signal.Incoming { fmt.Printf(term.FgRed+"[%v] sig: %s\n"+term.Reset, ds(), s) fmt.Println(prof.String()) os.Exit(0) } }
func (c *Core) marshalProfJSON() string { return misc.JSONQuote(prof.String()) }
func (c *Core) dumpProf() string { return prof.String() }
func profLoop() { for { <-alarmOnce(5e9) fmt.Println(prof.String()) } }