Skip to content

Commit 8f6a9ac

Browse files
committed
runtime/metrics: remove unused StopTheWorld Description field
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 <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Michael Knyszek <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Austin Clements <[email protected]>
1 parent 6598c65 commit 8f6a9ac

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

api/go1.16.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ pkg runtime/metrics, type Description struct, Cumulative bool
395395
pkg runtime/metrics, type Description struct, Description string
396396
pkg runtime/metrics, type Description struct, Kind ValueKind
397397
pkg runtime/metrics, type Description struct, Name string
398-
pkg runtime/metrics, type Description struct, StopTheWorld bool
399398
pkg runtime/metrics, type Float64Histogram struct
400399
pkg runtime/metrics, type Float64Histogram struct, Buckets []float64
401400
pkg runtime/metrics, type Float64Histogram struct, Counts []uint64

src/runtime/metrics/description.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ type Description struct {
4646
//
4747
// This flag thus indicates whether or not it's useful to compute a rate from this value.
4848
Cumulative bool
49-
50-
// StopTheWorld is whether or not the metric requires a stop-the-world
51-
// event in order to collect it.
52-
StopTheWorld bool
5349
}
5450

5551
// The English language descriptions below must be kept in sync with the

0 commit comments

Comments
 (0)