aboutsummaryrefslogtreecommitdiff
path: root/api/go1.8.txt
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2016-12-06 17:42:42 -0500
committerAustin Clements <austin@google.com>2016-12-07 20:59:16 +0000
commit01c6a19e041f6b316c17a065f7a42b8dab57c9da (patch)
tree6a67ca68f6df3ba461a717ab3591dc2bddd8381c /api/go1.8.txt
parentd4177877c6d6e710d77dd8c94b91f8567f1aaa87 (diff)
downloadgo-01c6a19e041f6b316c17a065f7a42b8dab57c9da.tar.gz
go-01c6a19e041f6b316c17a065f7a42b8dab57c9da.zip
runtime: add number of forced GCs to MemStats
This adds a counter for the number of times the application forced a GC by, e.g., calling runtime.GC(). This is useful for detecting applications that are overusing/abusing runtime.GC() or debug.FreeOSMemory(). Fixes #18217. Change-Id: I990ab7a313c1b3b7a50a3d44535c460d7c54f47d Reviewed-on: https://go-review.googlesource.com/34067 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'api/go1.8.txt')
-rw-r--r--api/go1.8.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/go1.8.txt b/api/go1.8.txt
index d93de98e1a..6ca0f3638c 100644
--- a/api/go1.8.txt
+++ b/api/go1.8.txt
@@ -238,6 +238,7 @@ pkg plugin, type Symbol interface {}
pkg reflect, func Swapper(interface{}) func(int, int)
pkg runtime, func MutexProfile([]BlockProfileRecord) (int, bool)
pkg runtime, func SetMutexProfileFraction(int) int
+pkg runtime, type MemStats struct, NumForcedGC uint32
pkg sort, func Slice(interface{}, func(int, int) bool)
pkg sort, func SliceIsSorted(interface{}, func(int, int) bool) bool
pkg sort, func SliceStable(interface{}, func(int, int) bool)