Пример #1
0
func (this Manager) runTicker() {
	defer T.Un(T.Trace(""))

	for _ = range this.ticker.C {
		this.Println("mem:", T.MemAlloced(), "goroutines:", runtime.NumGoroutine())
	}
}
Пример #2
0
func (this Manager) invokeGc() {
	start := time.Now()
	alloced := T.MemAlloced()
	runtime.GC()
	this.Println("GC", time.Now().Sub(start), alloced, "->", T.MemAlloced())
}