OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package runtime | 5 package runtime |
6 | 6 |
7 import "unsafe" | 7 import "unsafe" |
8 | 8 |
9 type MemStatsType struct { | 9 type MemStatsType struct { |
10 // General statistics. | 10 // General statistics. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // The statistics may be out of date, as the information is | 65 // The statistics may be out of date, as the information is |
66 // updated lazily from per-thread caches. | 66 // updated lazily from per-thread caches. |
67 // Use UpdateMemStats to bring the statistics up to date. | 67 // Use UpdateMemStats to bring the statistics up to date. |
68 var MemStats MemStatsType | 68 var MemStats MemStatsType |
69 | 69 |
70 // UpdateMemStats brings MemStats up to date. | 70 // UpdateMemStats brings MemStats up to date. |
71 func UpdateMemStats() | 71 func UpdateMemStats() |
72 | 72 |
73 // GC runs a garbage collection. | 73 // GC runs a garbage collection. |
74 func GC() | 74 func GC() |
| 75 |
| 76 func AllocProcLocal(active bool) (slot uint32) |
| 77 func FreeProcLocal(slot uint32) |
| 78 func GetProcLocal(slot uint32) (valp *uint64) |
| 79 func IterProcLocal(slot uint32, valp **uint64, iter *uintptr) bool |
OLD | NEW |