mstats            668 src/pkg/runtime/heapdump.c 	dumpint(mstats.alloc);
mstats            669 src/pkg/runtime/heapdump.c 	dumpint(mstats.total_alloc);
mstats            670 src/pkg/runtime/heapdump.c 	dumpint(mstats.sys);
mstats            671 src/pkg/runtime/heapdump.c 	dumpint(mstats.nlookup);
mstats            672 src/pkg/runtime/heapdump.c 	dumpint(mstats.nmalloc);
mstats            673 src/pkg/runtime/heapdump.c 	dumpint(mstats.nfree);
mstats            674 src/pkg/runtime/heapdump.c 	dumpint(mstats.heap_alloc);
mstats            675 src/pkg/runtime/heapdump.c 	dumpint(mstats.heap_sys);
mstats            676 src/pkg/runtime/heapdump.c 	dumpint(mstats.heap_idle);
mstats            677 src/pkg/runtime/heapdump.c 	dumpint(mstats.heap_inuse);
mstats            678 src/pkg/runtime/heapdump.c 	dumpint(mstats.heap_released);
mstats            679 src/pkg/runtime/heapdump.c 	dumpint(mstats.heap_objects);
mstats            680 src/pkg/runtime/heapdump.c 	dumpint(mstats.stacks_inuse);
mstats            681 src/pkg/runtime/heapdump.c 	dumpint(mstats.stacks_sys);
mstats            682 src/pkg/runtime/heapdump.c 	dumpint(mstats.mspan_inuse);
mstats            683 src/pkg/runtime/heapdump.c 	dumpint(mstats.mspan_sys);
mstats            684 src/pkg/runtime/heapdump.c 	dumpint(mstats.mcache_inuse);
mstats            685 src/pkg/runtime/heapdump.c 	dumpint(mstats.mcache_sys);
mstats            686 src/pkg/runtime/heapdump.c 	dumpint(mstats.buckhash_sys);
mstats            687 src/pkg/runtime/heapdump.c 	dumpint(mstats.gc_sys);
mstats            688 src/pkg/runtime/heapdump.c 	dumpint(mstats.other_sys);
mstats            689 src/pkg/runtime/heapdump.c 	dumpint(mstats.next_gc);
mstats            690 src/pkg/runtime/heapdump.c 	dumpint(mstats.last_gc);
mstats            691 src/pkg/runtime/heapdump.c 	dumpint(mstats.pause_total_ns);
mstats            693 src/pkg/runtime/heapdump.c 		dumpint(mstats.pause_ns[i]);
mstats            694 src/pkg/runtime/heapdump.c 	dumpint(mstats.numgc);
mstats            279 src/pkg/runtime/malloc.h extern MStats mstats;
mstats             81 src/pkg/runtime/mem_plan9.c 	return runtime·SysAlloc(nbytes, &mstats.heap_sys);
mstats           1343 src/pkg/runtime/mgc0.c 			work.chunk = runtime·SysAlloc(work.nchunk, &mstats.gc_sys);
mstats           1720 src/pkg/runtime/mgc0.c 			finc = runtime·persistentalloc(FinBlockSize, 0, &mstats.gc_sys);
mstats           1913 src/pkg/runtime/mgc0.c 			runtime·xadd64(&mstats.next_gc, -(uint64)(size * (gcpercent + 100)/100));
mstats           1955 src/pkg/runtime/mgc0.c 		runtime·xadd64(&mstats.next_gc, -(uint64)(nfree * size * (gcpercent + 100)/100));
mstats           2181 src/pkg/runtime/mgc0.c 	mstats.stacks_inuse = stacks_inuse;
mstats           2182 src/pkg/runtime/mgc0.c 	mstats.mcache_inuse = runtime·mheap.cachealloc.inuse;
mstats           2183 src/pkg/runtime/mgc0.c 	mstats.mspan_inuse = runtime·mheap.spanalloc.inuse;
mstats           2184 src/pkg/runtime/mgc0.c 	mstats.sys = mstats.heap_sys + mstats.stacks_sys + mstats.mspan_sys +
mstats           2185 src/pkg/runtime/mgc0.c 		mstats.mcache_sys + mstats.buckhash_sys + mstats.gc_sys + mstats.other_sys;
mstats           2194 src/pkg/runtime/mgc0.c 	mstats.alloc = 0;
mstats           2195 src/pkg/runtime/mgc0.c 	mstats.total_alloc = 0;
mstats           2196 src/pkg/runtime/mgc0.c 	mstats.nmalloc = 0;
mstats           2197 src/pkg/runtime/mgc0.c 	mstats.nfree = 0;
mstats           2198 src/pkg/runtime/mgc0.c 	for(i = 0; i < nelem(mstats.by_size); i++) {
mstats           2199 src/pkg/runtime/mgc0.c 		mstats.by_size[i].nmalloc = 0;
mstats           2200 src/pkg/runtime/mgc0.c 		mstats.by_size[i].nfree = 0;
mstats           2215 src/pkg/runtime/mgc0.c 			mstats.nmalloc++;
mstats           2216 src/pkg/runtime/mgc0.c 			mstats.alloc += s->elemsize;
mstats           2218 src/pkg/runtime/mgc0.c 			mstats.nmalloc += s->ref;
mstats           2219 src/pkg/runtime/mgc0.c 			mstats.by_size[s->sizeclass].nmalloc += s->ref;
mstats           2220 src/pkg/runtime/mgc0.c 			mstats.alloc += s->ref*s->elemsize;
mstats           2226 src/pkg/runtime/mgc0.c 	mstats.nfree = runtime·mheap.nlargefree;
mstats           2227 src/pkg/runtime/mgc0.c 	for(i = 0; i < nelem(mstats.by_size); i++) {
mstats           2228 src/pkg/runtime/mgc0.c 		mstats.nfree += runtime·mheap.nsmallfree[i];
mstats           2229 src/pkg/runtime/mgc0.c 		mstats.by_size[i].nfree = runtime·mheap.nsmallfree[i];
mstats           2230 src/pkg/runtime/mgc0.c 		mstats.by_size[i].nmalloc += runtime·mheap.nsmallfree[i];
mstats           2233 src/pkg/runtime/mgc0.c 	mstats.nmalloc += mstats.nfree;
mstats           2236 src/pkg/runtime/mgc0.c 	mstats.total_alloc = mstats.alloc + runtime·mheap.largefree + smallfree;
mstats           2237 src/pkg/runtime/mgc0.c 	mstats.heap_alloc = mstats.alloc;
mstats           2238 src/pkg/runtime/mgc0.c 	mstats.heap_objects = mstats.nmalloc - mstats.nfree;
mstats           2289 src/pkg/runtime/mgc0.c 	if(!mstats.enablegc || g == m->g0 || m->locks > 0 || runtime·panicking)
mstats           2302 src/pkg/runtime/mgc0.c 	if(force==0 && mstats.heap_alloc < mstats.next_gc) {
mstats           2421 src/pkg/runtime/mgc0.c 	heap0 = mstats.next_gc*100/(gcpercent+100);
mstats           2424 src/pkg/runtime/mgc0.c 	mstats.next_gc = mstats.heap_alloc+mstats.heap_alloc*gcpercent/100;
mstats           2427 src/pkg/runtime/mgc0.c 	mstats.last_gc = runtime·unixnanotime();  // must be Unix time to make sense to user
mstats           2428 src/pkg/runtime/mgc0.c 	mstats.pause_ns[mstats.numgc%nelem(mstats.pause_ns)] = t4 - t0;
mstats           2429 src/pkg/runtime/mgc0.c 	mstats.pause_total_ns += t4 - t0;
mstats           2430 src/pkg/runtime/mgc0.c 	mstats.numgc++;
mstats           2431 src/pkg/runtime/mgc0.c 	if(mstats.debuggc)
mstats           2435 src/pkg/runtime/mgc0.c 		heap1 = mstats.heap_alloc;
mstats           2437 src/pkg/runtime/mgc0.c 		if(heap1 != mstats.heap_alloc) {
mstats           2438 src/pkg/runtime/mgc0.c 			runtime·printf("runtime: mstats skew: heap=%D/%D\n", heap1, mstats.heap_alloc);
mstats           2441 src/pkg/runtime/mgc0.c 		obj = mstats.nmalloc - mstats.nfree;
mstats           2450 src/pkg/runtime/mgc0.c 			mstats.numgc, work.nproc, (t1-t0)/1000, (t2-t1)/1000, (t3-t2)/1000, (t4-t3)/1000,
mstats           2452 src/pkg/runtime/mgc0.c 			mstats.nmalloc, mstats.nfree,
mstats           2491 src/pkg/runtime/mgc0.c 		runtime·SysFree(sweep.spans, sweep.nspan*sizeof(sweep.spans[0]), &mstats.other_sys);
mstats           2540 src/pkg/runtime/mgc0.c 	runtime·memcopy(runtime·sizeof_C_MStats, stats, &mstats);
mstats           2555 src/pkg/runtime/mgc0.c 	if(pauses->cap < nelem(mstats.pause_ns)+3)
mstats           2561 src/pkg/runtime/mgc0.c 	n = mstats.numgc;
mstats           2562 src/pkg/runtime/mgc0.c 	if(n > nelem(mstats.pause_ns))
mstats           2563 src/pkg/runtime/mgc0.c 		n = nelem(mstats.pause_ns);
mstats           2570 src/pkg/runtime/mgc0.c 		p[i] = mstats.pause_ns[(mstats.numgc-1-i)%nelem(mstats.pause_ns)];
mstats           2572 src/pkg/runtime/mgc0.c 	p[n] = mstats.last_gc;
mstats           2573 src/pkg/runtime/mgc0.c 	p[n+1] = mstats.numgc;
mstats           2574 src/pkg/runtime/mgc0.c 	p[n+2] = mstats.pause_total_ns;	
mstats           2890 src/pkg/runtime/mgc0.c 	runtime·SysMap(h->arena_start - n, n - h->bitmap_mapped, h->arena_reserved, &mstats.gc_sys);
mstats             39 src/pkg/runtime/mheap.c 		all = (MSpan**)runtime·SysAlloc(cap*sizeof(all[0]), &mstats.other_sys);
mstats             47 src/pkg/runtime/mheap.c 				runtime·SysFree(h->allspans, h->nspancap*sizeof(all[0]), &mstats.other_sys);
mstats             61 src/pkg/runtime/mheap.c 	runtime·FixAlloc_Init(&h->spanalloc, sizeof(MSpan), RecordSpan, h, &mstats.mspan_sys);
mstats             62 src/pkg/runtime/mheap.c 	runtime·FixAlloc_Init(&h->cachealloc, sizeof(MCache), nil, nil, &mstats.mcache_sys);
mstats             63 src/pkg/runtime/mheap.c 	runtime·FixAlloc_Init(&h->specialfinalizeralloc, sizeof(SpecialFinalizer), nil, nil, &mstats.other_sys);
mstats             64 src/pkg/runtime/mheap.c 	runtime·FixAlloc_Init(&h->specialprofilealloc, sizeof(SpecialProfile), nil, nil, &mstats.other_sys);
mstats             88 src/pkg/runtime/mheap.c 	runtime·SysMap((byte*)h->spans + h->spans_mapped, n - h->spans_mapped, h->arena_reserved, &mstats.other_sys);
mstats            176 src/pkg/runtime/mheap.c 	mstats.heap_alloc += m->mcache->local_cachealloc;
mstats            180 src/pkg/runtime/mheap.c 		mstats.heap_inuse += npage<<PageShift;
mstats            182 src/pkg/runtime/mheap.c 			mstats.heap_objects++;
mstats            183 src/pkg/runtime/mheap.c 			mstats.heap_alloc += npage<<PageShift;
mstats            237 src/pkg/runtime/mheap.c 	mstats.heap_idle -= s->npages<<PageShift;
mstats            238 src/pkg/runtime/mheap.c 	mstats.heap_released -= s->npreleased<<PageShift;
mstats            326 src/pkg/runtime/mheap.c 			runtime·printf("runtime: out of memory: cannot allocate %D-byte block (%D in use)\n", (uint64)ask, mstats.heap_sys);
mstats            387 src/pkg/runtime/mheap.c 	mstats.heap_alloc += m->mcache->local_cachealloc;
mstats            389 src/pkg/runtime/mheap.c 	mstats.heap_inuse -= s->npages<<PageShift;
mstats            391 src/pkg/runtime/mheap.c 		mstats.heap_alloc -= s->npages<<PageShift;
mstats            392 src/pkg/runtime/mheap.c 		mstats.heap_objects--;
mstats            411 src/pkg/runtime/mheap.c 	mstats.heap_idle += s->npages<<PageShift;
mstats            470 src/pkg/runtime/mheap.c 			mstats.heap_released += released;
mstats            496 src/pkg/runtime/mheap.c 			k, mstats.heap_inuse>>20, mstats.heap_idle>>20, mstats.heap_sys>>20,
mstats            497 src/pkg/runtime/mheap.c 			mstats.heap_released>>20, (mstats.heap_sys - mstats.heap_released)>>20);
mstats            536 src/pkg/runtime/mheap.c 		if(unixnow - mstats.last_gc > forcegc) {
mstats            147 src/pkg/runtime/msize.c 		mstats.by_size[i].size = runtime·class_to_size[i];
mstats            183 src/pkg/runtime/proc.c 	mstats.enablegc = 1;
mstats             50 src/pkg/runtime/stack.c 		n = (StackCacheNode*)runtime·SysAlloc(FixedStack*StackCacheBatch, &mstats.stacks_sys);
mstats            107 src/pkg/runtime/stack.c 		v = runtime·SysAlloc(ROUND(n, PageSize), &mstats.stacks_sys);
mstats            155 src/pkg/runtime/stack.c 			runtime·SysFree(v, n, &mstats.stacks_sys);
mstats            938 src/pkg/runtime/stack.c 			runtime·SysFree(oldstk, newsize, &mstats.stacks_sys);