diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-02-12 22:31:36 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-02-12 22:31:36 +0400 |
| commit | 5e72fae9b2c4fddc67a5d8ea0aecf3f73234d83e (patch) | |
| tree | d6550eeae7533146e462eb2e350e9455c0c6e2d0 /src/pkg/runtime/runtime.h | |
| parent | 44c252bda29585b4ee9f18e77e68c658207e6f0a (diff) | |
| download | go-5e72fae9b2c4fddc67a5d8ea0aecf3f73234d83e.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
