From 7e6393134775fed8a1fdc60a1912bbd48823c1d9 Mon Sep 17 00:00:00 2001 From: Fufu Date: Tue, 2 Jul 2024 18:04:10 +0800 Subject: [PATCH] feat: add GoMaxProcs field to stats --- stats/stats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/stats/stats.go b/stats/stats.go index d80ffcc..66acfa8 100644 --- a/stats/stats.go +++ b/stats/stats.go @@ -32,6 +32,7 @@ func SYSStats() map[string]any { "ConfigModTime": master.ConfigModTime, "GoVersion": config.GoVersion, "DebVersion": config.DebVersion, + "GoMaxProcs": runtime.GOMAXPROCS(0), "NumCpus": runtime.NumCPU(), "NumGoroutine": runtime.NumGoroutine(), "NumCgoCall": utils.Comma(runtime.NumCgoCall()),