From 6ee27198544ce9ed7979839abff7248708168862 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Mon, 4 Dec 2023 17:31:58 -0500 Subject: [PATCH] doc: add STW metrics to release notes For #63340. For #61422. Change-Id: Ib74bb54b0450e96b7f4b7eb7ba2ae7ac2d40171a Reviewed-on: https://go-review.googlesource.com/c/go/+/547095 Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI Auto-Submit: Michael Pratt Reviewed-by: Mauri de Souza Meneguzzo --- doc/go1.22.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/doc/go1.22.html b/doc/go1.22.html index 331c790d21..e5facbd892 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -638,16 +638,30 @@ defer func() {
runtime/metrics
+

+ Four new histogram metrics + /sched/pauses/stopping/gc:seconds, + /sched/pauses/stopping/other:seconds, + /sched/pauses/total/gc:seconds, and + /sched/pauses/total/other:seconds provide additional details + about stop-the-world pauses. + The "stopping" metrics report the time taken from deciding to stop the + world until all goroutines are stopped. + The "total" metrics report the time taken from deciding to stop the world + until it is started again. +

+ +

+ The /gc/pauses:seconds metric is deprecated, as it is + equivalent to the new /sched/pauses/total/gc:seconds metric. +

+

/sync/mutex/wait/total:seconds now includes contention on runtime-internal locks in addition to sync.Mutex and sync.RWMutex.

- -

- TODO: https://go.dev/issue/63340: provide histogram of all STW events -

-- 2.48.1