1
2
3
4
5
6
7
8
9 package profilerecord
10
11 type StackRecord struct {
12 Stack []uintptr
13 }
14
15 type MemProfileRecord struct {
16 AllocBytes, FreeBytes int64
17 AllocObjects, FreeObjects int64
18 Stack []uintptr
19 }
20
21 func (r *MemProfileRecord) InUseBytes() int64 { return r.AllocBytes - r.FreeBytes }
22 func (r *MemProfileRecord) InUseObjects() int64 { return r.AllocObjects - r.FreeObjects }
23
24 type BlockProfileRecord struct {
25 Count int64
26 Cycles int64
27 Stack []uintptr
28 }
29
View as plain text