aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.h
diff options
context:
space:
mode:
authorJens Frederich <jfrederich@gmail.com>2014-10-28 12:35:25 -0400
committerRuss Cox <rsc@golang.org>2014-10-28 12:35:25 -0400
commit46af78915a19bb6be96c2c6bc7f6d346562c3b37 (patch)
tree96dcea2901383fa3710225ab2ebe92db9b5c9254 /src/runtime/malloc.h
parent96e9e81b5f353636965fa6ba5e014c2bab13fadc (diff)
downloadgo-46af78915a19bb6be96c2c6bc7f6d346562c3b37.tar.xz
runtime: add PauseEnd array to MemStats and GCStats
Fixes #8787. LGTM=rsc R=rsc, dvyukov CC=golang-codereviews https://golang.org/cl/153670043
Diffstat (limited to 'src/runtime/malloc.h')
-rw-r--r--src/runtime/malloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/malloc.h b/src/runtime/malloc.h
index d1930756a2..adb8d3d677 100644
--- a/src/runtime/malloc.h
+++ b/src/runtime/malloc.h
@@ -267,7 +267,8 @@ struct MStats
uint64 next_gc; // next GC (in heap_alloc time)
uint64 last_gc; // last GC (in absolute time)
uint64 pause_total_ns;
- uint64 pause_ns[256];
+ uint64 pause_ns[256]; // circular buffer of recent GC pause lengths
+ uint64 pause_end[256]; // circular buffer of recent GC end times (nanoseconds since 1970)
uint32 numgc;
bool enablegc;
bool debuggc;