mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: track time spent in mutator assists
This time is tracked per P and periodically flushed to the global controller state. This will be used to compute mutator assist utilization in order to schedule background GC work. Change-Id: Ib94f90903d426a02cf488bf0e2ef67a068eb3eec Reviewed-on: https://go-review.googlesource.com/8837 Reviewed-by: Rick Hudson <rlh@golang.org>
This commit is contained in:
parent
4b2fde945a
commit
100da60979
3 changed files with 38 additions and 1 deletions
|
|
@ -366,6 +366,9 @@ type p struct {
|
|||
|
||||
palloc persistentAlloc // per-P to avoid mutex
|
||||
|
||||
// Per-P GC state
|
||||
gcAssistTime int64 // Nanoseconds in assistAlloc
|
||||
|
||||
pad [64]byte
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue