/* * @author: sre @date: 2023/11/22 0022 @desc: todo * */ package main import ( "fmt" "testing" "time" ) func TestGetWinCPU(t *testing.T) { ip, port := "127.0.0.1", "9182" for { fmt.Println(getCPUInfo(ip, port)) time.Sleep(time.Second * 1) } } //windows_cs_physical_memory_bytes