From 65c63dc4aabba3ecd320427fb20bc1cdbe0d2a3d Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 8 May 2014 08:35:49 -0700 Subject: runtime: write memory profile statistics to the heap dump. LGTM=rsc R=rsc, khr CC=golang-codereviews https://golang.org/cl/97010043 --- src/pkg/runtime/malloc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pkg/runtime/malloc.h') diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index dbea7ad135..798c130ad5 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -570,6 +570,7 @@ enum void runtime·MProf_Malloc(void*, uintptr); void runtime·MProf_Free(Bucket*, uintptr, bool); void runtime·MProf_GC(void); +void runtime·iterate_memprof(void (*callback)(Bucket*, uintptr, uintptr*, uintptr, uintptr, uintptr)); int32 runtime·gcprocs(void); void runtime·helpgc(int32 nproc); void runtime·gchelper(void); -- cgit v1.3