This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
mstats.go
104 lines (87 loc) · 1.91 KB
/
mstats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Memory statistics
package runtime
// Statistics.
// If you edit this structure, also edit type MemStats below.
type mstats struct {
alloc uint64
total_alloc uint64
sys uint64
nlookup uint64
nmalloc uint64
nfree uint64
heap_alloc uint64
heap_sys uint64
heap_idle uint64
heap_inuse uint64
heap_released uint64
heap_objects uint64
stacks_inuse uint64
stacks_sys uint64
mspan_inuse uint64
mspan_sys uint64
mcache_inuse uint64
mcache_sys uint64
buckhash_sys uint64
gc_sys uint64
other_sys uint64
next_gc uint64
last_gc uint64
pause_total_ns uint64
pause_ns [256]uint64
pause_end [256]uint64
numgc uint32
gc_cpu_fraction float64
enablegc bool
debuggc bool
by_size [_NumSizeClasses]struct {
size uint32
nmalloc uint64
nfree uint64
}
tinyallocs uint64
heap_live uint64
heap_scan uint64
heap_marked uint64
heap_reachable uint64
}
// A MemStats records statistics about the memory allocator.
type MemStats struct {
Alloc uint64
TotalAlloc uint64
Sys uint64
Lookups uint64
Mallocs uint64
Frees uint64
HeapAlloc uint64
HeapSys uint64
HeapIdle uint64
HeapInuse uint64
HeapReleased uint64
HeapObjects uint64
StackInuse uint64
StackSys uint64
MSpanInuse uint64
MSpanSys uint64
MCacheInuse uint64
MCacheSys uint64
BuckHashSys uint64
GCSys uint64
OtherSys uint64
NextGC uint64
LastGC uint64
PauseTotalNs uint64
PauseNs [256]uint64
PauseEnd [256]uint64
NumGC uint32
GCCPUFraction float64
EnableGC bool
DebugGC bool
BySize [61]struct {
Size uint32
Mallocs uint64
Frees uint64
}
}