From: Shenghou Ma Date: Sat, 30 Mar 2013 18:17:25 +0000 (+0800) Subject: doc/go1.1: mention (*testing.B).ReportAllocs() X-Git-Tag: go1.1rc2~253 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6e054190f77d467e27f3fe64c30661acdc15f02b;p=gostls13.git doc/go1.1: mention (*testing.B).ReportAllocs() R=golang-dev, r CC=golang-dev https://golang.org/cl/8198043 --- diff --git a/doc/go1.1.html b/doc/go1.1.html index 8a2d10ef75..6d9256c0c6 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