From: qydysky Date: Mon, 25 Jan 2021 08:21:33 +0000 (+0800) Subject: debug信息 X-Git-Tag: v0.5.6~2^2~1 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=7ef19b5c660692c93116ea0edb881eddfb0d20f4;p=bili_danmu%2F.git debug信息 --- diff --git a/demo/main.go b/demo/main.go index 24d932b..0754324 100644 --- a/demo/main.go +++ b/demo/main.go @@ -23,6 +23,7 @@ func main() { // time.Sleep(time.Duration(3)*time.Second) // }() go func(){ + fmt.Printf("PID:%d\n",os.Getpid()) for{ View() time.Sleep(time.Duration(60)*time.Second) @@ -46,10 +47,9 @@ func main() { func View(){ // var memStats runtime.MemStats // runtime.ReadMemStats(&memStats) - fmt.Printf("=====\n") - fmt.Printf("PID:%d\n",os.Getpid()) + // fmt.Printf("=====\n") // fmt.Printf("总内存:%v MB\n",memStats.Alloc/1024e2/8) // fmt.Printf("GC次数:%v \n",memStats.NumGC) // fmt.Printf("堆 :%v %v MB\n",memStats.HeapInuse/1024e2/8,(memStats.HeapIdle - memStats.HeapReleased)/1024e2/8) - fmt.Printf("=====\n") + // fmt.Printf("=====\n") } \ No newline at end of file