1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:04:40 -07:00
go/src/runtime/pprof
Austin Clements 9a7893550c runtime/pprof: test that stack barriers never appear in profile
This adds a test that runs CPU profiling with a high load of stack
barriers and stack barrier insertion/removal operations and checks
that both 1) the runtime doesn't crash and 2) stackBarrier itself
never appears in a profile. Prior to the fix for gentraceback starting
in the middle of stackBarrier, condition 2 often failed.

Change-Id: Ic28860448859029779844c4bf3bb28ca84611e2c
Reviewed-on: https://go-review.googlesource.com/17037
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-11-19 16:35:43 +00:00
..
mprof_test.go test: use go:noinline consistently 2015-11-03 02:01:34 +00:00
pprof_test.go runtime/pprof: test that stack barriers never appear in profile 2015-11-19 16:35:43 +00:00
pprof.go runtime/pprof: document content of heap profile 2015-07-27 16:30:27 +00:00