Add plots for Go 1.26 scheduler pause metrics#140
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add plots for new 1.26 metrics
Add plots for Go 1.26 scheduler pause metrics
Nov 4, 2025
Owner
|
@copilot rebase on main |
Contributor
Author
Rebased on main. Commit 44167a4
Updated the screenshot to show the Statsviz UI with the runtime metrics plots. The screenshot now displays the GC Memory Summary and Heap plots with active data visualization. Commit 44167a4 |
Co-authored-by: arl <476650+arl@users.noreply.github.com>
Co-authored-by: arl <476650+arl@users.noreply.github.com>
Co-authored-by: arl <476650+arl@users.noreply.github.com>
44167a4 to
d0bc960
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Go 1.26 introduced three new runtime metrics that decompose stop-the-world pauses into stopping time (coordination overhead) versus total pause time, split by GC and non-GC causes. These provide visibility into whether pause latency is dominated by coordination or actual pause work.
Changes
Added three new heatmap plots under the "scheduler" category:
Stop-the-world Stopping Latencies (GC) -
/sched/pauses/stopping/gc:secondsTime to coordinate stopping all Ps for GC (subset of total GC pause)
Stop-the-world Stopping Latencies (Other) -
/sched/pauses/stopping/other:secondsTime to coordinate stopping all Ps for non-GC reasons (subset of total non-GC pause)
Stop-the-world Pause Latencies (Other) -
/sched/pauses/total/other:secondsTotal non-GC stop-the-world pause distribution
Implementation
internal/plot/layouts.go: Added layout functions following the existing GC pause heatmap patterninternal/plot/plots.go: Added plot descriptors with histogram downsampling logicThe new plots complement the existing
/sched/pauses/total/gc:secondsmetric by distinguishing coordination overhead from pause work and covering non-GC stop-the-world events.Screenshot
Statsviz UI showing runtime metrics plots including GC Memory Summary and Heap visualizations with live data
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.