From 6e054190f77d467e27f3fe64c30661acdc15f02b Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sun, 31 Mar 2013 02:17:25 +0800 Subject: [PATCH] doc/go1.1: mention (*testing.B).ReportAllocs() R=golang-dev, r CC=golang-dev https://golang.org/cl/8198043 --- doc/go1.1.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/go1.1.html b/doc/go1.1.html index 8a2d10ef759..6d9256c0c65 100644 --- a/doc/go1.1.html +++ b/doc/go1.1.html @@ -828,7 +828,7 @@ The ServeMux type now has a Handler without executing it. The Transport can now cancel an in-flight request with CancelRequest. -Finally, the Transport is now more aggresive at closing TCP connections when +Finally, the Transport is now more aggressive at closing TCP connections when a Response.Body is closed before being fully consumed. @@ -917,8 +917,11 @@ The syscall package has received many u
  • The testing package now automates the generation of allocation -statistics in benchmarks using the new -AllocsPerRun function and the +statistics in tests and benchmarks using the new +AllocsPerRun function. And the +ReportAllocs +method on testing.B will enable printing of +memory allocation statistics for the calling benchmark. It also introduces the AllocsPerOp method of BenchmarkResult. There is also a new