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