code: func (c *SampleCollector) CalcTotalSize() {
  	c.TotalSize = 0
  	for _, item := range c.Samples {
  		c.TotalSize += int64(len(item.Value.GetBytes()))
  	}
  }
docs: // CalcTotalSize is to calculate total size based on samples.