Example #1
0
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)
	}
}
Example #2
0
func (c *Core) marshalProfJSON() string { return misc.JSONQuote(prof.String()) }
Example #3
0
func (c *Core) dumpProf() string { return prof.String() }
Example #4
0
func profLoop() {
	for {
		<-alarmOnce(5e9)
		fmt.Println(prof.String())
	}
}