aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/trace
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2021-04-01 18:38:14 +0000
committerMichael Knyszek <mknyszek@google.com>2021-04-14 14:03:30 +0000
commit3eaf75c13a2e86ff9f9ab8014caa7fc6b855f130 (patch)
treeabf7818886bab73bb0a5618f01298fd136a6b315 /src/cmd/trace
parente224787fef3227587aceddbe21a792e3102d3cfb (diff)
downloadgo-3eaf75c13a2e86ff9f9ab8014caa7fc6b855f130.tar.gz
go-3eaf75c13a2e86ff9f9ab8014caa7fc6b855f130.zip
runtime: move next_gc and last_next_gc into gcControllerState
This change moves next_gc and last_next_gc into gcControllerState under the names heapGoal and lastHeapGoal respectively. These are fundamentally GC pacer related values, and so it makes sense for them to live here. Partially generated by rf ' ex . { memstats.next_gc -> gcController.heapGoal memstats.last_next_gc -> gcController.lastHeapGoal } ' except for updates to comments and gcControllerState methods, where they're accessed through the receiver, and trace-related renames of NextGC -> HeapGoal, while we're here. For #44167. Change-Id: I1e871ad78a57b01be8d9f71bd662530c84853bed Reviewed-on: https://go-review.googlesource.com/c/go/+/306603 Trust: Michael Knyszek <mknyszek@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/cmd/trace')
-rw-r--r--src/cmd/trace/trace.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/trace/trace.go b/src/cmd/trace/trace.go
index 30c80f0e04..ca10736c32 100644
--- a/src/cmd/trace/trace.go
+++ b/src/cmd/trace/trace.go
@@ -627,7 +627,7 @@ func generateTrace(params *traceParams, consumer traceConsumer) error {
}
case trace.EvHeapAlloc:
ctx.heapStats.heapAlloc = ev.Args[0]
- case trace.EvNextGC:
+ case trace.EvHeapGoal:
ctx.heapStats.nextGC = ev.Args[0]
}
if setGStateErr != nil {