diff options
| author | Russ Cox <rsc@golang.org> | 2011-01-19 13:41:42 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-01-19 13:41:42 -0500 |
| commit | bcd910cfe28eb237741e3bf25fc2c454206a1c30 (patch) | |
| tree | 89b320ff96ebf2138354f9c4f75323a0a3dadecd /src/pkg/runtime/debug.go | |
| parent | 61a4e9812e11efe3ea41142fc49e331c333a333e (diff) | |
| download | go-bcd910cfe28eb237741e3bf25fc2c454206a1c30.tar.xz | |
runtime: add per-pause gc stats
R=r, r2
CC=golang-dev
https://golang.org/cl/3980042
Diffstat (limited to 'src/pkg/runtime/debug.go')
| -rw-r--r-- | src/pkg/runtime/debug.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go index 3ce35cc5ba..cf30374f09 100644 --- a/src/pkg/runtime/debug.go +++ b/src/pkg/runtime/debug.go @@ -39,6 +39,7 @@ type MemStatsType struct { Sys uint64 // bytes obtained from system (should be sum of XxxSys below) Lookups uint64 // number of pointer lookups Mallocs uint64 // number of mallocs + Frees uint64 // number of frees // Main allocation heap statistics. HeapAlloc uint64 // bytes allocated and still in use @@ -60,11 +61,12 @@ type MemStatsType struct { BuckHashSys uint64 // profiling bucket hash table // Garbage collector statistics. - NextGC uint64 - PauseNs uint64 - NumGC uint32 - EnableGC bool - DebugGC bool + NextGC uint64 + PauseTotalNs uint64 + PauseNs [256]uint64 // most recent GC pause times + NumGC uint32 + EnableGC bool + DebugGC bool // Per-size allocation statistics. // Not locked during update; approximate. |
