]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/metrics: remove unused StopTheWorld Description field
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 8 Jan 2021 16:56:24 +0000 (16:56 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 8 Jan 2021 18:15:43 +0000 (18:15 +0000)
This change removes the as-of-yet unused StopTheWorld field in the
Description struct. Adding a new field to a struct is much easier than
removing it, so let's save it for when we actually need it.

Change-Id: I8074b8569187c1a148500575fa8a661534e875d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/282632
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Austin Clements <austin@google.com>
api/go1.16.txt
src/runtime/metrics/description.go

index baac5379f81e51090b4efd9a72c270ab8b844787..8a8c6b8860cd2148775dabb5480df679b4fe7ccf 100644 (file)
@@ -395,7 +395,6 @@ pkg runtime/metrics, type Description struct, Cumulative bool
 pkg runtime/metrics, type Description struct, Description string
 pkg runtime/metrics, type Description struct, Kind ValueKind
 pkg runtime/metrics, type Description struct, Name string
-pkg runtime/metrics, type Description struct, StopTheWorld bool
 pkg runtime/metrics, type Float64Histogram struct
 pkg runtime/metrics, type Float64Histogram struct, Buckets []float64
 pkg runtime/metrics, type Float64Histogram struct, Counts []uint64
index 01c8a685ee68259dd08ec7246ebe1dd3237d4dab..716802e9a2f9fe43a8a17cdb516dc8b0457cb6e2 100644 (file)
@@ -46,10 +46,6 @@ type Description struct {
        //
        // This flag thus indicates whether or not it's useful to compute a rate from this value.
        Cumulative bool
-
-       // StopTheWorld is whether or not the metric requires a stop-the-world
-       // event in order to collect it.
-       StopTheWorld bool
 }
 
 // The English language descriptions below must be kept in sync with the