MCPcopy Create free account
hub / github.com/cortexproject/cortex / Size

Method Size

pkg/querier/tripperware/query.pb.go:2959–2978  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2957}
2958
2959func (m *HistogramBucket) Size() (n int) {
2960 if m == nil {
2961 return 0
2962 }
2963 var l int
2964 _ = l
2965 if m.Boundaries != 0 {
2966 n += 1 + sovQuery(uint64(m.Boundaries))
2967 }
2968 if m.Lower != 0 {
2969 n += 9
2970 }
2971 if m.Upper != 0 {
2972 n += 9
2973 }
2974 if m.Count != 0 {
2975 n += 9
2976 }
2977 return n
2978}
2979
2980func (m *PrometheusResponseStats) Size() (n int) {
2981 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovQueryFunction · 0.85

Tested by

no test coverage detected