diff options
author | Russ Cox <rsc@golang.org> | 2009-12-03 17:22:23 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-12-03 17:22:23 -0800 |
commit | 4a513fd3b4a6cd780a7de1f217b64e4f19020ee7 (patch) | |
tree | db4e0630cae7b1362353ffd8921a0df25b970082 /src/pkg/malloc/malloc.go | |
parent | 7b84abbf8b1f77341fabf1bbe88c1b629c9b2165 (diff) | |
download | golang-4a513fd3b4a6cd780a7de1f217b64e4f19020ee7.tar.gz |
runtime: malloc fixes
* throw away dead code
* add mlookup counter
* add malloc counter
* set up for blocks with no pointers
Fixes issue 367.
R=r
http://codereview.appspot.com/165050
Diffstat (limited to 'src/pkg/malloc/malloc.go')
-rw-r--r-- | src/pkg/malloc/malloc.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/malloc/malloc.go b/src/pkg/malloc/malloc.go index 66708a680..ba15f04ab 100644 --- a/src/pkg/malloc/malloc.go +++ b/src/pkg/malloc/malloc.go @@ -17,6 +17,8 @@ type Stats struct { Stacks uint64; InusePages uint64; NextGC uint64; + Lookups uint64; + Mallocs uint64; EnableGC bool; } |