LingxinMeng 1 year ago
parent
commit
74064658bb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/main/main.go

+ 2 - 1
test/main/main.go

@@ -16,5 +16,6 @@ import (
 
 // 保存资源占用情况
 func main() {
-	fmt.Println(util.GetMemoryPercent())
+	fmt.Println("cpu:", util.GetCpuPercent())
+	fmt.Println("memory:", util.GetMemoryPercent())
 }