-
Notifications
You must be signed in to change notification settings - Fork 21
/
sample_types.go
52 lines (50 loc) · 1.03 KB
/
sample_types.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
package pyroscope
import (
"github.com/grafana/pyroscope-go/upstream"
)
var (
sampleTypeConfigHeap = map[string]*upstream.SampleType{
"alloc_objects": {
Units: "objects",
Cumulative: false,
},
"alloc_space": {
Units: "bytes",
Cumulative: false,
},
"inuse_space": {
Units: "bytes",
Aggregation: "average",
Cumulative: false,
},
"inuse_objects": {
Units: "objects",
Aggregation: "average",
Cumulative: false,
},
}
sampleTypeConfigMutex = map[string]*upstream.SampleType{
"contentions": {
DisplayName: "mutex_count",
Units: "lock_samples",
Cumulative: false,
},
"delay": {
DisplayName: "mutex_duration",
Units: "lock_nanoseconds",
Cumulative: false,
},
}
sampleTypeConfigBlock = map[string]*upstream.SampleType{
"contentions": {
DisplayName: "block_count",
Units: "lock_samples",
Cumulative: false,
},
"delay": {
DisplayName: "block_duration",
Units: "lock_nanoseconds",
Cumulative: false,
},
}
)