]> Cypherpunks repositories - gostls13.git/commit
runtime: print pp.schedtick in scheddetail even when !detailed
authorNicolas Hillegeer <aktau@google.com>
Thu, 12 Dec 2024 16:49:03 +0000 (08:49 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 18 Feb 2025 16:13:49 +0000 (08:13 -0800)
commit5295722238446f09197adb2c5a8ba27fe1076973
treea93345310e4f24dbfaf8af243a1d0f516bec7670
parentecda82012d3cff21c758fa45eb5e86365015a131
runtime: print pp.schedtick in scheddetail even when !detailed

Provides, on one line, an approximation of P scheduling throughput: how
many times execute() was called for a given P. Said another way: how
many RUNNABLE to RUNNING transitions have happened for this P.

This allows discerning whether a P actually did anything, and how it
compares to other periods of a processes operation.

This should be useful to analyze (kernel) scheduler hiccups.

Investigators will want to subtract the tick values from subsequent
schedtrace lines to get a rate of schedulings. I've opted to add a space
around the first and last element as well to make it more uniform to do
the proposed subtracting with tools like AWK.

Change-Id: I69d6dae1509ad285d43799f38bcaa3aa0fb2352e
Reviewed-on: https://go-review.googlesource.com/c/go/+/635636
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Nicolas Hillegeer <aktau@google.com>
src/runtime/proc.go