go/src/testing
Dmitriy Vyukov 8f47c837fd runtime: fix memory profiler
There are 3 issues:
1. Skip argument of callers is off by 3,
so that all allocations are deep inside of memory profiler.
2. Memory profiling statistics are not updated after runtime.GC.
3. Testing package does not update memory profiling statistics
before capturing the profile.
Also add an end-to-end test.
Fixes #8867.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/148710043
2014-10-16 22:11:26 +04:00
..
iotest build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
quick build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
allocs.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
allocs_test.go runtime: account for tiny allocs, for testing.AllocsPerRun 2014-09-17 14:49:32 -04:00
benchmark.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
benchmark_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cover.go testing: read coverage counters atomically 2014-09-09 12:31:07 -07:00
example.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
export_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
testing.go runtime: fix memory profiler 2014-10-16 22:11:26 +04:00
testing_test.go cmd/go, testing: add TestMain support 2014-09-19 13:51:06 -04:00