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

Method Size

pkg/cortexpb/cortex.pb.go:3782–3795  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3780}
3781
3782func (m *Sample) Size() (n int) {
3783 if m == nil {
3784 return 0
3785 }
3786 var l int
3787 _ = l
3788 if m.Value != 0 {
3789 n += 9
3790 }
3791 if m.TimestampMs != 0 {
3792 n += 1 + sovCortex(uint64(m.TimestampMs))
3793 }
3794 return n
3795}
3796
3797func (m *MetricMetadata) Size() (n int) {
3798 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovCortexFunction · 0.85

Tested by

no test coverage detected