Skip to content

Commit 0159150

Browse files
dunglasgopherbot
authored andcommitted
cmd/go: update docs for go test -benchmem
Mention that the allocation counter doesn't count allocations made using C.malloc (cgo) or in C. Change-Id: I03c23b6d8cfde68c04a75732a0d3c05eedae2276 GitHub-Last-Rev: 2d805b3 GitHub-Pull-Request: #65430 Reviewed-on: https://go-review.googlesource.com/c/go/+/560397 Auto-Submit: Bryan Mills <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: qiulaidongfeng <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent c841ba3 commit 0159150

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/cmd/go/alldocs.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/test/test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ profile the tests during execution:
353353
354354
-benchmem
355355
Print memory allocation statistics for benchmarks.
356+
Allocations made in C or using C.malloc are not counted.
356357
357358
-blockprofile block.out
358359
Write a goroutine blocking profile to the specified file

0 commit comments

Comments
 (0)