summaryrefslogtreecommitdiff
path: root/src/testing
Commit message (Collapse)AuthorAgeFilesLines
* runtime: fix memory profilerDmitriy Vyukov2014-10-161-0/+1
| | | | | | | | | | | | | | | | 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 issue 8867. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/148710043
* testing: clearer commentRobert Griesemer2014-10-011-1/+1
| | | | | | | | | Fixes issue 8797. LGTM=r R=r CC=golang-codereviews https://codereview.appspot.com/146680043
* cmd/go, testing: add TestMain supportRuss Cox2014-09-192-5/+69
| | | | | | | | | Fixes issue 8202. LGTM=r, bradfitz R=r, josharian, bradfitz CC=golang-codereviews https://codereview.appspot.com/148770043
* runtime: account for tiny allocs, for testing.AllocsPerRunRuss Cox2014-09-171-0/+29
| | | | | | | | | Fixes issue 8734. LGTM=r, bradfitz, dvyukov R=bradfitz, r, dvyukov CC=golang-codereviews, iant, khr https://codereview.appspot.com/143150043
* testing: read coverage counters atomicallyRob Pike2014-09-091-3/+6
| | | | | | | | | | | | | | For -mode=atomic, we need to read the counters using an atomic load to avoid a race. Not worth worrying about when -mode=atomic is set during generation of the profile, so we use atomic loads always. Fixes issue 8630. LGTM=rsc R=dvyukov, rsc CC=golang-codereviews https://codereview.appspot.com/141800043
* build: move package sources from src/pkg to srcRuss Cox2014-09-0812-0/+2269
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.