diff options
| author | Russ Cox <rsc@golang.org> | 2010-03-29 17:30:07 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-03-29 17:30:07 -0700 |
| commit | 218421ebcdaee59bac41af0fbdf50a525d5b5f52 (patch) | |
| tree | c8b2e90bb30a9a9749c06f3e03980cbd4467ebd5 /src/pkg/runtime/mheapmap64.c | |
| parent | 7f29727c0c5c3e6f12cadbfe988a3edade1d4e2a (diff) | |
| download | golang-218421ebcdaee59bac41af0fbdf50a525d5b5f52.tar.gz | |
runtime: a couple more memory stats.
now runtime.MemStats.Sys really is the sum of all the other Sys fields.
R=r
CC=golang-dev
http://codereview.appspot.com/843041
Diffstat (limited to 'src/pkg/runtime/mheapmap64.c')
| -rw-r--r-- | src/pkg/runtime/mheapmap64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/mheapmap64.c b/src/pkg/runtime/mheapmap64.c index 2f856ee17..d5590a2d8 100644 --- a/src/pkg/runtime/mheapmap64.c +++ b/src/pkg/runtime/mheapmap64.c @@ -96,6 +96,7 @@ MHeapMap_Preallocate(MHeapMap *m, PageID k, uintptr len) p2 = m->allocator(sizeof *p2); if(p2 == nil) return false; + mstats.heapmap_sys += sizeof *p2; m->p[i1] = p2; } @@ -104,6 +105,7 @@ MHeapMap_Preallocate(MHeapMap *m, PageID k, uintptr len) p3 = m->allocator(sizeof *p3); if(p3 == nil) return false; + mstats.heapmap_sys += sizeof *p3; p2->p[i2] = p3; } |
