Commit 87915b65 authored by Russ Cox's avatar Russ Cox

runtime: introduce MemStatsType

R=ken2
CC=golang-dev
https://golang.org/cl/204061
parent ebf32c58
......@@ -71,9 +71,7 @@ func Signame(sig int32) string
// be called during initialization.
func Siginit()
// MemStats holds statistics about the memory system.
// The statistics are only approximate, as they are not interlocked on update.
var MemStats struct {
type MemStatsType struct {
Alloc uint64
Sys uint64
Stacks uint64
......@@ -84,6 +82,10 @@ var MemStats struct {
EnableGC bool
}
// MemStats holds statistics about the memory system.
// The statistics are only approximate, as they are not interlocked on update.
var MemStats MemStatsType
// Alloc allocates a block of the given size.
// FOR TESTING AND DEBUGGING ONLY.
func Alloc(uintptr) *byte
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment