From 5e72fae9b2c4fddc67a5d8ea0aecf3f73234d83e Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Wed, 12 Feb 2014 22:31:36 +0400 Subject: runtime: improve cpu profiles for GC/syscalls/cgo Current "System->etext" is not very informative. Add parent "GC" frame. Replace un-unwindable syscall/cgo frames with Go stack that leads to the call. LGTM=rsc R=rsc, alex.brainman, ality CC=golang-codereviews https://golang.org/cl/61270043 --- src/pkg/runtime/runtime.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 57b5329e68..fa56e30152 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -350,6 +350,9 @@ struct M // these are here because they are too large to be on the stack // of low-level NOSPLIT functions. LibCall libcall; + uintptr libcallpc; // for cpu profiler + uintptr libcallsp; + G* libcallg; #endif #ifdef GOOS_solaris int32* perrno; // pointer to TLS errno -- cgit v1.3