Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
6e054190
Commit
6e054190
authored
Mar 31, 2013
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/go1.1: mention (*testing.B).ReportAllocs()
R=golang-dev, r CC=golang-dev
https://golang.org/cl/8198043
parent
9905446d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
doc/go1.1.html
doc/go1.1.html
+6
-3
No files found.
doc/go1.1.html
View file @
6e054190
...
...
@@ -828,7 +828,7 @@ The <code>ServeMux</code> type now has a
<code>
Handler
</code>
without executing it.
The
<code>
Transport
</code>
can now cancel an in-flight request with
<a
href=
"/pkg/net/http/#Transport.CancelRequest"
><code>
CancelRequest
</code></a>
.
Finally, the Transport is now more aggresive at closing TCP connections when
Finally, the Transport is now more aggres
s
ive at closing TCP connections when
a
<a
href=
"/pkg/net/http/#Response"
><code>
Response.Body
</code></a>
is closed before
being fully consumed.
</li>
...
...
@@ -917,8 +917,11 @@ The <a href="/pkg/syscall/"><code>syscall</code></a> package has received many u
<li>
The
<a
href=
"/pkg/testing/"
><code>
testing
</code></a>
package now automates the generation of allocation
statistics in benchmarks using the new
<a
href=
"/pkg/testing/#AllocsPerRun"
><code>
AllocsPerRun
</code></a>
function and the
statistics in tests and benchmarks using the new
<a
href=
"/pkg/testing/#AllocsPerRun"
><code>
AllocsPerRun
</code></a>
function. And the
<a
href=
"/pkg/testing/#B.ReportAllocs"
><code>
ReportAllocs
</code></a>
method on
<a
href=
"/pkg/testing/#B"
><code>
testing.B
</code></a>
will enable printing of
memory allocation statistics for the calling benchmark. It also introduces the
<a
href=
"/pkg/testing/#BenchmarkResult.AllocsPerOp"
><code>
AllocsPerOp
</code></a>
method of
<a
href=
"/pkg/testing/#BenchmarkResult"
><code>
BenchmarkResult
</code></a>
.
There is also a new
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment