]> Cypherpunks repositories - gostls13.git/commit
runtime: enable profiling on g0
authorDaniel Morsing <daniel.morsing@gmail.com>
Thu, 30 Apr 2015 14:32:54 +0000 (15:32 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Mon, 11 May 2015 08:44:30 +0000 (08:44 +0000)
commitdb6f88a84b126877bd523df8c45af06779ce0e42
treeccbafcc08c71b771246cae4bffc4ef1942cdead9
parent19e81a9b3b0d103fe7a9a9605c16eb4ba1f20ed8
runtime: enable profiling on g0

Since we now have stack information for code running on the
systemstack, we can traceback over it. To make cpu profiles useful,
add a case in gentraceback to jump over systemstack switches.

Fixes #10609.

Change-Id: I21f47fcc802c07c5d4a1ada56374314e388a6dc7
Reviewed-on: https://go-review.googlesource.com/9506
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
12 files changed:
src/runtime/arch1_386.go
src/runtime/arch1_amd64.go
src/runtime/arch1_amd64p32.go
src/runtime/arch1_arm.go
src/runtime/arch1_arm64.go
src/runtime/arch1_ppc64.go
src/runtime/arch1_ppc64le.go
src/runtime/export_test.go
src/runtime/proc1.go
src/runtime/runtime2.go
src/runtime/runtime_test.go
src/runtime/traceback.go