mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
19e81a9b3b
commit
db6f88a84b
12 changed files with 105 additions and 142 deletions
|
|
@ -106,11 +106,6 @@ var MemclrBytes = memclrBytes
|
|||
|
||||
var HashLoad = &hashLoad
|
||||
|
||||
// For testing.
|
||||
func GogoBytes() int32 {
|
||||
return _RuntimeGogoBytes
|
||||
}
|
||||
|
||||
// entry point for testing
|
||||
func GostringW(w []uint16) (s string) {
|
||||
systemstack(func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue