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

Method Size

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

Source from the content-addressed store, hash-verified

2922}
2923
2924func (m *SampleHistogramPair) Size() (n int) {
2925 if m == nil {
2926 return 0
2927 }
2928 var l int
2929 _ = l
2930 if m.TimestampMs != 0 {
2931 n += 1 + sovQuery(uint64(m.TimestampMs))
2932 }
2933 l = m.Histogram.Size()
2934 n += 1 + l + sovQuery(uint64(l))
2935 return n
2936}
2937
2938func (m *SampleHistogram) Size() (n int) {
2939 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovQueryFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected