|
runtime: delete UpdateMemStats, replace with ReadMemStats(&stats).
Unexports runtime.MemStats and rename MemStatsType to MemStats.
The new accessor requires passing a pointer to a user-allocated
MemStats structure.
Fixes issue 2572.
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+129 lines, -105 lines) |
Patch |
 |
M |
src/cmd/godoc/godoc.go
|
View
|
1
2
3
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/pkg/encoding/gob/timing_test.go
|
View
|
1
2
3
|
4 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/pkg/expvar/expvar.go
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/fmt/fmt_test.go
|
View
|
1
2
3
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/net/rpc/server_test.go
|
View
|
1
2
3
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/reflect/all_test.go
|
View
|
1
2
3
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/gc_test.go
|
View
|
1
2
3
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/malloc.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/mem.go
|
View
|
1
2
3
4
5
|
3 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/mgc0.c
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/pprof/pprof.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/strconv/itoa_test.go
|
View
|
1
2
3
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/bench/garbage/parser.go
|
View
|
1
2
3
4
|
8 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
test/bench/garbage/stats.go
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/bench/garbage/tree2.go
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
test/chan/select2.go
|
View
|
1
2
3
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/closure.go
|
View
|
1
2
3
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/gc2.go
|
View
|
1
2
3
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/init1.go
|
View
|
1
2
3
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
test/malloc1.go
|
View
|
1
2
3
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/mallocrand.go
|
View
|
1
2
3
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/mallocrep.go
|
View
|
1
2
3
|
2 chunks |
+13 lines, -11 lines |
0 comments
|
Download
|
 |
M |
test/mallocrep1.go
|
View
|
1
2
3
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
Total messages: 18
|