]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/metrics/doc.go
crypto/tls: change default minimum version to 1.2
[gostls13.git] / src / runtime / metrics / doc.go
index 4cf528746b9694570f1b455e4e4e0a09133a4340..a89f6dca65dd72b0d8fbf84a6e2686a13460f233 100644 (file)
@@ -18,7 +18,7 @@ metric sets may not intersect.
 
 Metrics are designated by a string key, rather than, for example, a field name in
 a struct. The full list of supported metrics is always available in the slice of
-Descriptions returned by All. Each Description also includes useful information
+Descriptions returned by [All]. Each [Description] also includes useful information
 about the metric.
 
 Thus, users of this API are encouraged to sample supported metrics defined by the
@@ -66,11 +66,9 @@ Below is the full list of supported metrics, ordered lexicographically.
 
        /cpu/classes/gc/mark/dedicated:cpu-seconds
                Estimated total CPU time spent performing GC tasks on processors
-               (as defined by GOMAXPROCS) dedicated to those tasks. This
-               includes time spent with the world stopped due to the GC. This
-               metric is an overestimate, and not directly comparable to system
-               CPU time measurements. Compare only with other /cpu/classes
-               metrics.
+               (as defined by GOMAXPROCS) dedicated to those tasks. This metric
+               is an overestimate, and not directly comparable to system CPU
+               time measurements. Compare only with other /cpu/classes metrics.
 
        /cpu/classes/gc/mark/idle:cpu-seconds
                Estimated total CPU time spent performing GC tasks on spare CPU
@@ -147,10 +145,21 @@ Below is the full list of supported metrics, ordered lexicographically.
        /gc/cycles/total:gc-cycles
                Count of all completed GC cycles.
 
+       /gc/gogc:percent
+               Heap size target percentage configured by the user, otherwise
+               100. This value is set by the GOGC environment variable, and the
+               runtime/debug.SetGCPercent function.
+
+       /gc/gomemlimit:bytes
+               Go runtime memory limit configured by the user, otherwise
+               math.MaxInt64. This value is set by the GOMEMLIMIT environment
+               variable, and the runtime/debug.SetMemoryLimit function.
+
        /gc/heap/allocs-by-size:bytes
                Distribution of heap allocations by approximate size.
-               Note that this does not include tiny objects as defined by
-               /gc/heap/tiny/allocs:objects, only tiny blocks.
+               Bucket counts increase monotonically. Note that this does not
+               include tiny objects as defined by /gc/heap/tiny/allocs:objects,
+               only tiny blocks.
 
        /gc/heap/allocs:bytes
                Cumulative sum of memory allocated to the heap by the
@@ -163,8 +172,9 @@ Below is the full list of supported metrics, ordered lexicographically.
 
        /gc/heap/frees-by-size:bytes
                Distribution of freed heap allocations by approximate size.
-               Note that this does not include tiny objects as defined by
-               /gc/heap/tiny/allocs:objects, only tiny blocks.
+               Bucket counts increase monotonically. Note that this does not
+               include tiny objects as defined by /gc/heap/tiny/allocs:objects,
+               only tiny blocks.
 
        /gc/heap/frees:bytes
                Cumulative sum of heap memory freed by the garbage collector.
@@ -178,6 +188,10 @@ Below is the full list of supported metrics, ordered lexicographically.
        /gc/heap/goal:bytes
                Heap size target for the end of the GC cycle.
 
+       /gc/heap/live:bytes
+               Heap memory occupied by live objects that were marked by the
+               previous GC.
+
        /gc/heap/objects:objects
                Number of objects, live or unswept, occupying heap memory.
 
@@ -197,8 +211,21 @@ Below is the full list of supported metrics, ordered lexicographically.
                1, so a value of 0 indicates that it was never enabled.
 
        /gc/pauses:seconds
-               Distribution individual GC-related stop-the-world pause
-               latencies.
+               Distribution of individual GC-related stop-the-world pause
+               latencies. Bucket counts increase monotonically.
+
+       /gc/scan/globals:bytes
+               The total amount of global variable space that is scannable.
+
+       /gc/scan/heap:bytes
+               The total amount of heap space that is scannable.
+
+       /gc/scan/stack:bytes
+               The number of bytes of stack that were scanned last GC cycle.
+
+       /gc/scan/total:bytes
+               The total amount space that is scannable. Sum of all metrics in
+               /gc/scan.
 
        /gc/stack/starting-size:bytes
                The stack size of new goroutines.
@@ -207,6 +234,22 @@ Below is the full list of supported metrics, ordered lexicographically.
                The number of non-default behaviors executed by the os/exec
                package due to a non-default GODEBUG=execerrdot=... setting.
 
+       /godebug/non-default-behavior/gocachehash:events
+               The number of non-default behaviors executed by the cmd/go
+               package due to a non-default GODEBUG=gocachehash=... setting.
+
+       /godebug/non-default-behavior/gocachetest:events
+               The number of non-default behaviors executed by the cmd/go
+               package due to a non-default GODEBUG=gocachetest=... setting.
+
+       /godebug/non-default-behavior/gocacheverify:events
+               The number of non-default behaviors executed by the cmd/go
+               package due to a non-default GODEBUG=gocacheverify=... setting.
+
+       /godebug/non-default-behavior/gotypesalias:events
+               The number of non-default behaviors executed by the go/types
+               package due to a non-default GODEBUG=gotypesalias=... setting.
+
        /godebug/non-default-behavior/http2client:events
                The number of non-default behaviors executed by the net/http
                package due to a non-default GODEBUG=http2client=... setting.
@@ -215,14 +258,23 @@ Below is the full list of supported metrics, ordered lexicographically.
                The number of non-default behaviors executed by the net/http
                package due to a non-default GODEBUG=http2server=... setting.
 
+       /godebug/non-default-behavior/httplaxcontentlength:events
+               The number of non-default behaviors executed by the net/http
+               package due to a non-default GODEBUG=httplaxcontentlength=...
+               setting.
+
+       /godebug/non-default-behavior/httpmuxgo121:events
+               The number of non-default behaviors executed by the net/http
+               package due to a non-default GODEBUG=httpmuxgo121=... setting.
+
        /godebug/non-default-behavior/installgoroot:events
                The number of non-default behaviors executed by the go/build
                package due to a non-default GODEBUG=installgoroot=... setting.
 
-       /godebug/non-default-behavior/multipartfiles:events
+       /godebug/non-default-behavior/jstmpllitinterp:events
                The number of non-default behaviors executed by
-               the mime/multipart package due to a non-default
-               GODEBUG=multipartfiles=... setting.
+               the html/template package due to a non-default
+               GODEBUG=jstmpllitinterp=... setting.
 
        /godebug/non-default-behavior/multipartmaxheaders:events
                The number of non-default behaviors executed by
@@ -234,6 +286,10 @@ Below is the full list of supported metrics, ordered lexicographically.
                the mime/multipart package due to a non-default
                GODEBUG=multipartmaxparts=... setting.
 
+       /godebug/non-default-behavior/multipathtcp:events
+               The number of non-default behaviors executed by the net package
+               due to a non-default GODEBUG=multipathtcp=... setting.
+
        /godebug/non-default-behavior/panicnil:events
                The number of non-default behaviors executed by the runtime
                package due to a non-default GODEBUG=panicnil=... setting.
@@ -247,6 +303,14 @@ Below is the full list of supported metrics, ordered lexicographically.
                package due to a non-default GODEBUG=tarinsecurepath=...
                setting.
 
+       /godebug/non-default-behavior/tls10server:events
+               The number of non-default behaviors executed by the crypto/tls
+               package due to a non-default GODEBUG=tls10server=... setting.
+
+       /godebug/non-default-behavior/tlsmaxrsasize:events
+               The number of non-default behaviors executed by the crypto/tls
+               package due to a non-default GODEBUG=tlsmaxrsasize=... setting.
+
        /godebug/non-default-behavior/x509sha1:events
                The number of non-default behaviors executed by the crypto/x509
                package due to a non-default GODEBUG=x509sha1=... setting.
@@ -279,7 +343,10 @@ Below is the full list of supported metrics, ordered lexicographically.
 
        /memory/classes/heap/stacks:bytes
                Memory allocated from the heap that is reserved for stack space,
-               whether or not it is currently in-use.
+               whether or not it is currently in-use. Currently, this
+               represents all stack memory for goroutines. It also includes all
+               OS thread stacks in non-cgo programs. Note that stacks may be
+               allocated differently in the future, and this may change.
 
        /memory/classes/heap/unused:bytes
                Memory that is reserved for heap objects but is not currently
@@ -306,6 +373,12 @@ Below is the full list of supported metrics, ordered lexicographically.
 
        /memory/classes/os-stacks:bytes
                Stack memory allocated by the underlying operating system.
+               In non-cgo programs this metric is currently zero. This may
+               change in the future.In cgo programs this metric includes
+               OS thread stacks allocated directly from the OS. Currently,
+               this only accounts for one stack in c-shared and c-archive build
+               modes, and other sources of stacks from the OS are not measured.
+               This too may change in the future.
 
        /memory/classes/other:bytes
                Memory used by execution trace buffers, structures for debugging
@@ -331,7 +404,8 @@ Below is the full list of supported metrics, ordered lexicographically.
 
        /sched/latencies:seconds
                Distribution of the time goroutines have spent in the scheduler
-               in a runnable state before actually running.
+               in a runnable state before actually running. Bucket counts
+               increase monotonically.
 
        /sync/mutex/wait/total:seconds
                Approximate cumulative time goroutines have spent blocked