Merge pull request #783 from roidelapluie/gc15
Update collector comment about GC stop-the-world
This commit is contained in:
commit
77b35d0377
|
@ -58,9 +58,10 @@ type goCollector struct {
|
||||||
// collector will use the memstats from a previous collection if
|
// collector will use the memstats from a previous collection if
|
||||||
// runtime.ReadMemStats takes more than 1s. However, if there are no previously
|
// runtime.ReadMemStats takes more than 1s. However, if there are no previously
|
||||||
// collected memstats, or their collection is more than 5m ago, the collection
|
// collected memstats, or their collection is more than 5m ago, the collection
|
||||||
// will block until runtime.ReadMemStats succeeds. (The problem might be solved
|
// will block until runtime.ReadMemStats succeeds.
|
||||||
// in Go1.13, see https://github.com/golang/go/issues/19812 for the related Go
|
//
|
||||||
// issue.)
|
// NOTE: The problem is solved in Go 1.15, see
|
||||||
|
// https://github.com/golang/go/issues/19812 for the related Go issue.
|
||||||
func NewGoCollector() Collector {
|
func NewGoCollector() Collector {
|
||||||
return &goCollector{
|
return &goCollector{
|
||||||
goroutinesDesc: NewDesc(
|
goroutinesDesc: NewDesc(
|
||||||
|
|
Loading…
Reference in New Issue